I have a problem compiling this program.Any suggestions is due tomorow.THANKS
Cpp(17) : error C2059: syntax error : '='Code:#include <iostream.h> #define MEAN = 65.4f #define STD_DEV = 15.6f int main(void) { float std_score; int score; char grade; cout <<"Enter the score of a student or enter -1 to stop: \n"; cin >> score; while (score != -1) { std_score = (score - MEAN) / STD_DEV; if (std_score >= 1) grade = ‘A’; else if (std_score >= 0) grade = ‘B’; else if (std_score >= -1) grade = ‘C’; else if (std_score >= -2) grade = ‘D’; else grade = ‘F’; cout << "Grade = " << grade endl; cout << " Enter the next score or enter -1 to stop "; cin >> score; } return 0; }
Cpp(20) : error C2018: unknown character '0x91'
Cpp(20) : error C2018: unknown character '0x92'
Cpp(20) : error C2065: 'A' : undeclared identifierCpp(22) : error C2018: unknown character '0x91'
Cpp(22) : error C2018: unknown character '0x92'
Cpp(22) : error C2065: 'B' : undeclared identifier
Cpp(24) : error C2018: unknown character '0x91'
Cpp(24) : error C2018: unknown character '0x92'
Cpp(24) : error C2065: 'C' : undeclared identifier
Cpp(26) : error C2018: unknown character '0x91'
Cpp(26) : error C2018: unknown character '0x92'
Cpp(26) : error C2065: 'D' : undeclared identifier
Cpp(28) : error C2018: unknown character '0x91'
Cpp(28) : error C2018: unknown character '0x92'
Cpp(28) : error C2065: 'F' : undeclared identifier
Cpp(30) : error C2146: syntax error : missing ';' before identifier 'endl'
Cpp(30) : warning C4551: function call missing argument list
Error executing cl.exe.
.exe - 17 error(s), 1 warning(s)