So I'm a beginner at this and the concepts are a little hard for me to grasp. But anyway, I'm using a stringstream converter to turn the last 3 digits of the user's input to an integer so I can do proper checking validations with it. However, I can't seem to get my converter to work properly. Here is the code:
But why are you even trying to use atol(), why not just extract the number to the proper type of variable in the first place? Converting a string to the different types is the main purpose of a stringstream.
If you would show your input and explain exactly what you're trying to do then maybe people would be more helpful.