mirror of
http://106.12.3.193:3000/violeteverisland/learn_cpp.git
synced 2026-03-08 01:27:33 +08:00
26 lines
609 B
C++
26 lines
609 B
C++
//
|
||
// Created by viole on 2026/2/25.
|
||
//
|
||
#include <iostream>
|
||
#include "windows.h"
|
||
using namespace std;
|
||
int main() {
|
||
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;
|
||
} |