how to read inputstream from a string varaible c++ code example
Example: get data from terminal c++
int i;
cout << "Please enter an integer value: ";
cin >> i;
int i;
cout << "Please enter an integer value: ";
cin >> i;