I changed that and I still get this error apparently the compiler is not up to date with c++11 and doesn't recognizes 'stoi', how can I add the stringstream to my code. It would be a great help if you could show me. Thanks.main.cpp:97:78: error: 'stoi' was not declared in this scope...
What can I use to replace stoi since the homework program won't accept it? I'm trying to read a string and display it as an integer. I know I have to use stringstream but have no idea how.
//ReadData.cpp
#include <iostream>
#include <cstring>
#include <cstdlib>
#include <string>
#include...
Implement a PrintMenu() function, which has a string as a parameter, outputs a menu of user options for analyzing/editing the string, and returns the user's entered menu option. Each option is represented by a single character.
If an invalid character is entered, continue to prompt for a valid...
I'm having trouble understanding how to use the "usrStr" or how to use the userInput in both of my functions. I know the problem with my code, i see that when i call the OutputWithoutWhiteSpace(userInput) function it works fine but it adds the extra characters
first sentence = 46 characters...