#include #include

using namespace std;

int main() { string name, gender; int age;

cout << '请输入您的姓名:';
getline(cin, name);

cout << '请输入您的性别:';
getline(cin, gender);

cout << '请输入您的年龄:';
cin >> age;

cout << '您的基本信息如下:' << endl;
cout << '姓名:' << name << endl;
cout << '性别:' << gender << endl;
cout << '年龄:' << age << endl;

return 0;

}


原文地址: https://www.cveoy.top/t/topic/nYhn 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录