篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了c_cpp 标准的io C ++相关的知识,希望对你有一定的参考价值。
# standard int
#include <iostream>
#include <string>
#include <stringstream>
using namespace std;
int main() {
// cint will only read in one space-delimited input at a time
int i, j, k;
cin >> i >> j >> k;
// getline will read the entire line until a newline character (or a custom specified delimiter)
string name;
getline(cin, name);
// stringstream will convert strings to other data types
int height;
string length;
getline(cin, input);
stringstream(input) >> height
return 0;
}