如果没有using namespace std
来源:百度知道 编辑:UC知道 时间:2024/05/25 19:35:44
如果没有using namespace std
是不是不能用cout cin啊
是不是不能用cout cin啊
也不是,就是用起来不方便罢了
std::cout
std::cin
这样用。
可以用,把#include <iostream>该为#include <iostream.h>
或是在用cout cin endl等是要用std::cout std::cin std::endl
把#include <iostream>该为#include <iostream.h> 不是标准C++