摘要:
命名空间 #include <iostream> #include <cstdio> // using namespace std::cout; // 使用std中的cout using namespace std; // 使用std中的所有定义 namespace A { int a = 0; } 阅读全文
摘要:
开始 初识输入输出 标准输入输出对象 C++标准库(iostream)定义了四个IO对象。 输入 cin(发音:see-in):istream对象,用于处理输入 cin >> 变量; 输出 cout(发音:see-out):ostream对象,称为标准输出 cerr(发音:see-err):用于输出 阅读全文