[C++] 纯文本查看 复制代码
#include <iostream>
#include <string>
#define PHP_EOL "\n"
using namespace std;
int main()
{
int a, b;
// 获取用户输入的值
cout << "请输入a的值" << endl;
cin >> a;
cout << "请输入b的值" << endl;
cin >> b;
// 输出用户的输入
cout << "a的值是: " << a << "\t b的值是: " << b << endl;
system("pause");
}