Recent content by elmessican

  1. E

    C/C++ Replacing stoi in C++ program for converting string to integer

    Yea I think I get it but i just don't know how or where to added to my code lol
  2. E

    C/C++ Replacing stoi in C++ program for converting string to integer

    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...
  3. E

    C/C++ Replacing stoi in C++ program for converting string to integer

    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...
  4. E

    C/C++ Need help with C++ program (Implement a PrintMenu() function)

    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...
  5. E

    C/C++ Troubleshooting C++ Program: Understanding usrStr and userInput Functions

    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...
Back
Top