Search:

Type: Posts; User: Elkvis

Search: Search took 0.04 seconds.

  1. keep in mind that the >> operator likes to stop...

    keep in mind that the >> operator likes to stop reading when it encounters white space. if you need to accept data that contains white space, you will need to use std::getline.
  2. you can also do this: #include ...

    you can also do this:


    #include <iostream>
    #include <string>

    int main()
    {
    std::string s;
    std::cin >> s;
Results 1 to 2 of 2