User profile: fiji885

User info
User name:fiji885
Old user name:dasani885
Bio:I'm just some dude lurking on the net.
History
Joined:
Number of posts:110
Latest posts:

Why does the cin.fail() to work properly when I input a string or char?
Take a look at line 34. After you get a user input you want to check if that user input was compatib...

Why does the cin.fail() to work properly when I input a string or char?
Examine line 105 carefully. Are you comparing?

Line breaks in code, print as one sentence. ???
Yes. Simply remove the remove the line breakers, which are [code]"\n"[/code] and [code]endl[/code]

Issue with input validation
You can do this [code] int myInt; std::cin >> myInt; if(std::cin.fail()) // In abstract, this is ba...

Line breaks in code, print as one sentence. ???
Replace the [code]\n[/code] on the first line with [code]endl;[/code] or [code]"\n"[/code] Remove t...