This commit is contained in:
2026-02-28 17:05:12 +08:00
parent 181304d736
commit c03026824f
4 changed files with 74 additions and 3 deletions

View File

@@ -2,9 +2,25 @@
// Created by viole on 2026/2/25.
//
#include <iostream>
#include "windows.h"
using namespace std;
int main() {
int num ;
cin >> num;
cout << num << endl;
SetConsoleOutputCP(CP_UTF8);
string name;
double height;
int age;
cout << "请输入你的姓名:" <<endl;
cin >> name;
cout << "请输入你的身高cm:" <<endl;
cin >> height;
cout << "请输入你的年龄:" <<endl;
cin >> age;
cout << "--------"<<endl;
cout << "信息输入完成,您的信息如下:"<<endl;
cout<<"姓名:"<<name<<endl;
cout<<"身高:"<<height<<endl;
cout<<"年龄:"<<age<<endl;
return 0;
}