输入输出
cout << "请输入" << endl;
int x = 0; (初始化变量)
cin >> x;
cout << x << endl;
命名空间
namespace A
{
int x = 2;
void f1();
}
cout << A::x << endl;
B::f1();
使用命名空间 using namespace A
if(flag)
{
cout << "true" << endl;
}
else
{
cout << "false" << endl;
}
原文:https://www.cnblogs.com/hqhdry/p/12545965.html