Answers for "input integers with space c++"

C++
3

string input with space c++ stl

char input[100];
cin.getline(input,sizeof(input));
Posted by: Guest on July-11-2021
1

how to take space separated input in c++

string z,s;
 while (true)
    {
      cin>>z;
      s+=z;
      if(cin.peek()=='\n')
      break;
    }
................................
	        OR\/
.................................
string s;
getline(cin,s);
Posted by: Guest on July-10-2021

Code answers related to "input integers with space c++"

Browse Popular Code Answers by Language