Agh, well I'm working with a book that asks to do replace all the char arrays with strings but I couldn't figure out the "grade" array. spent a lot of time on it.
the book is C++ primer plus 5th edition, if you've heard of it, the only problem is they don't make ALL solutions available online so I can't see the answer! Only a select few are available ):
Disregard my first post. ++ is defined for a character, so no issue there. The issue is somewhere else, and now I see where it really is. Bloody caffeine dependancy.
Also, I think they expect you to do a bit more than a simple change of type.
I'll post the problem, if what you expect is true, I will go back to the drawing board for this one.
"Write a C++ program that requests and displays information as shown in the following example of output:
What is your first name? Betty Sue
What is your last name? Yew
What letter grade do you deserve? A
What is your age? 22
Name : Yew, Betty Sue
Grade : B
Age : 22
Note that the pgroam should be able to accept first names that compromise more than one word. Also note that the program adjusts the grade downward, that is, up one letter. Assume that the user requests and A, a B, or a C so that you don't have to worry about the gap between a D and an F.
Write using the C++ string class instead of char arrays."