输入cin输出cout包含在<iostream>中,使用时需要使用std命名空间
#include <iostream>
// 1.不声声明名空间
// 2.或声明std
// using namespace std;
// 3.或用到什么声明什么
using std::cin;
using std::cout;
using std::endl;
int main()
{
int a, b, c, d;
// 1.不声声明名空间
// std::cin >> a >> b >> c >> d;
// std::cout << a << " " << b << " " << c << " " << d << std::endl;
// 2.或声明std
// using namespace std;
// 3.或用到什么声明什么
// using std::cin;
// using std::cout;
// using std::endl;
cin >> a >> b >> c >> d;
cout << a << " " << b << " " << c << " " << d << endl;
return 0;
}