c++ getline

#include <iostream>
#include <string> // Header file needed to use string objects
using namespace std;
int main()
{
    string name;
    getline(cin, name);
    return 0;
}
文章目录