Okay, for starters, what have you done? :) It'd be a good point for others to help if they could see what you've done so far.
This whole program hinges on basic functions and their parameter/return values.
For instance, the displayHeader() function would simply contain some cout statements to output the description of a program.
I noticed that you have two function prototypes inside your main function:
1 2
|
void displayHeader();
void showMenu(string[], double[]);
|
These prototypes (as they're called) cannot be inside another function. You'll have to move them outside of your main function, and before it:
1 2 3 4 5 6
|
using namespace std;
void displayHeader();
void showMenu(string[], double[]);
int main()
|
In addition, be sure to #include <string>. A lot of compilers automatically include this for you, and some header files indirectly include this header as well. BUT it's just good practice and in some cases, necessary. For example, Visual Studio will give you an error when you try to use cin>> on a string, unless you #include <string>.
Another thing you can change (I know this is probably for school, and ALOT of schools tend to use system("PAUSE") in their short examples ), but you can replace this with something along the lines of:
1 2
|
cout<<"Press Enter to Continue...";
cin.ignore();
|
If you want more lengthy help, just reach me out at:
sparkprogrammer@gmail.com
Cheers!