Thanks for the answers!
The reason for the (irrelevant) stringstream is that I was originally going to use an int, but then decided string and just forgot to change it. Thank you for pointing this out.
During the cin.ignore, why "unsigned(-1)" and not just "1" (as this works too)?
Also, how to I use a C++ style string for an ofstream variable name?
During the cin.ignore, why "unsigned(-1)" and not just "1" (as this works too)?
It would only work if the user didn't put any spaces after their last input. You want to ignore EVERYTHING until you find a new line and ignore it too, then move on in the code.
Also, how to I use a C++ style string for an ofstream variable name?
Thanks! One more post... what would you recommend as a C++11 compatible IDE (not VS or some other Windows dependent IDE (I have Windows, but primarily use Linux))? Also, how can an unsigned integer be "-1" when only signed integers can be negative in value?
I don't know of any IDEs off the top of my head. As for the unsigned integer thing, why do you think I am casting it? ;) it gets the highest value an unsigned integer can hold.
Never knew that (but, thinking about it, it does make sense binary counters increase to their maximum value when told to go below 0), I suppose that you learn something new every day! As for IDEs, I think that I'll just wait until they release the next Code::Blocks. Thanks for your time, L B!