Answers for "c++ read string from stdin"

C++
4

c++ reading string

#include <iostream>
#include <string>
string str;
getline(cin, str);
//str contains line
Posted by: Guest on January-26-2020
2

get data from terminal c++

int i;
  cout << "Please enter an integer value: ";
  cin >> i;
Posted by: Guest on June-17-2020

Browse Popular Code Answers by Language