diff --git a/cin数据输入.cpp b/cin数据输入.cpp index cfb7789..c4b1b17 100644 --- a/cin数据输入.cpp +++ b/cin数据输入.cpp @@ -2,9 +2,25 @@ // Created by viole on 2026/2/25. // #include +#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 << "请输入你的姓名:" <> name; + + cout << "请输入你的身高(cm):" <> height; + + cout << "请输入你的年龄:" <> age; + cout << "--------"<大于 <小于 <=小于等于>=大于等于 + int num1 =3; + int num2 =4; + bool r1 = (num1!=num2); + cout<