Hi! I am trying to have my program repeat with a do/while loop but when i put in the do/while i keep getting errors on it. This is a header file too and it works fine without the do/while but I still need to have it. Any tips? thank you!
Sample I/O:
Enter a sentence: The Last Project
In reverse order: tcejorP tsaL ehT
CONTINUE(Y/N)? y
Enter a sentence:....
When you declare a class in a header file (as you've done), you're making a type. There shouldn't be any kind of actual executable code, since all you're doing is describing a type (your class) by giving it function declarations and other members.
You need to split your project into at least a couple files, however, it's recommended that you put the function implementations (function bodies) into a separate .cpp file.