I made a few changes trying to clean up the class, but not sure I did it right. Of course it's not compiling yet. This is what I changed and you can tell me how far off base I am : )
Code:
#include "stdafx.h"
#include <string>
#include <iostream>
#include <iomanip>
#include <cstdlib> // to use system("cls") used to "clear screen"
#include <limits>
We are learning classes. And I had it working with a class that only had the 3 term/interest options and returned option. Well we're also supposed to add a menu where the user can choose to enter their own values for interest and term or choose from the menu of 3 pre-defined values. I wasn't sure how to implement all that in the Menu class.
I'm going to try to keep this question within the student posting guidelines. I've been working on a class file, and I'm not sure I've constructed it correctly. I'm getting several errors concerning the function definitions and matching { with }. I've checked my brackets several times and it looks right to me. I've made changes, changed back, and I'm at a loss. I'm using Visual C++ Express 2005 on Windows Vista OS. It may just be something simple...
Leave a comment: