so I put it back in.
As stated by
koothkeeper, you can't have nested implementations of main.
line 22:
int StudentID, char Studentlevel, char ResidentCode, char Pt_Ft, int CreditHours, char Biology
You can't mix type declarations of different type in the same statement.
Should be:
1 2 3 4 5 6
|
int StudentID; // Note the ;
char Studentlevel; // ; required
char ResidentCode; // ; required
char Pt_Ft; // ; required
int CreditHours; // ; required
char Biology; // ; required
|
line 25,27,31,35,39,43,47,52,58:
cout<< "Enter your student ID number"<<; // extraneous << operator
line 29,37,45: C++ does not support implied left hand side in conditionals. You must fully specify the conditions.
Example:
if (ans == 'Y' || 'y')
evaluates as
if ((ans == 'Y') || ('y'))
('y')
always evaluates to 1 (
true
), therefore the if statement is always true.
line 32,40,48:
break
is illegal here.
line 36: missing ;
line 51: missing {
line 53: missing the >> operator.
line 66: Function Undergraduate is never called. The ; makes this a function declaration, not a function.
Line 97: Ditto for function graduate.
lines 72-73: You probably want {} around these statements.
line 80,93,115: You're trying to return a double from a function that is type
char
.
Line 124: You have duplicate functions named Graduate.
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post.
http://www.cplusplus.com/articles/jEywvCM9/
Hint: You can edit your post, highlight your code and press the <> formatting button.