xcalibur0645 wrote: |
---|
"I'm just 12-years old" |
Age carries no weight.
It does its job, but it's very linear; there's no variation. There's a few things I should point out:
1) The way you request input relies on the user to enter only 1 word. If the user wanted to enter their full name, the rest of the input is going to screw up. This is fixed with either
std::istream::getline() or
std::istream::ignore().
2) The use of
system() is frowned upon. While its use in your case isn't immediately threatening, it has hidden dangers that would compromise the safety of your program. See here: http://www.cplusplus.com/forum/articles/11153/
3) Excessive
std::istream::endl() invocations can decrease performance. A more efficient alternative is the new-line character ('\n'). Only use
std::istream::endl() when you want to force-flush the output buffer.
Perhaps making use of files could expand your current program.
Edit: I just notices you've started another thread which is similar to this one. These forums are for asking questions. However, there are some occasions where users want their code reviewing. That brings me to the question: Do you want your code to be reviewed? I've done that already.
Wazzak