I hope by "text-based" you mean "using a graphics library like SFML to draw text to the screen myself" and not "I'm using the console because I can't figure out how to use the graphics libraries and I didn't realize I could ask for help on this great forum"
Classes for this are completely suitable.
Lets say I made a game where you would memorize flash cards, then input them back into the computer.
I could make a class hat takes the users input, then checks to make sure its correct. If it is correct, it sets a variable (int CorrectYesNo) to 1 for yes or 0 for no.
Hope that helped :D
//Bman
$ dict print
From The Jargon File (version 4.4.7, 29 Dec 2003) [jargon]:
To output, even if to a screen. If a hacker says that a program 'printed
a message', he means this; if he refers to printing a file, he probably
means it in the conventional sense of writing to a hardcopy device
(compounds like 'print job' and 'printout', on the other hand, always
refer to the latter). This very common term is likely a holdover from the
days when printing terminals were the norm, perpetuated by programming
language constructs like {C}'s printf(3). See senses 1 and 2 of {tty}.
Thanks guys, and L B, I'm still getting just standard c++ down, I didn't think it would be a good idea to jump into something like SDL or Allegro yet. Chances are I'm not even going to finish this, I'm doing it entirely for learning.