declaring a variable is an easy process:
typeofvar varname = initializedvalue;
for constants, like your GRADE_A - GRADE_F, you want to use the const modifier so the program cannot change the values after they have been initialized.
Assigning values is a simple mathematical operation, so Ill leave that out.
As far as printing, there are a few functions you can use, I reccoment you lookup the man pages (or go online) for cout.
Oh yeah, and read through that book...
|