Back
Close

Computing with Data

elgeish
585.7K views

Input - Part III

#include <iostream>
#include <string>
using namespace std;

int main() {
  string s;
  
  // read a line (possibly containing white spaces)
  // from standard input and assign it to s
  getline(cin, s);
  
  return 0;
}
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io