[求助]如何做才能简化像"using namespace std;"等C++用语?
如何设置以简化像"using namespace std;"和"cin.get();"等C++用语?我用的是VC++2005,
比如我要输入"using namespace std;",我想用"using"来代替"using namespace std;",该如何做才能实现呢?
请各位大哥大姐给点建议!!
各位大哥大姐!
那我用VC++2005中编程,调试后结果总是一闪而过,必须要在源文件的"return 0;"前加上
cin.get();
cin.get();
才能长时间的显示,有什么办法用其他简单的字符来代替吗?
#include <iostream>
#define using using namespace
int main()
{
using std;
cout<<\"hello world!\"<<endl;
}
#include <iostream>
#define using using namespace
int main()
{
using std;
cout<<\"hello world!\"<<endl;
}
宏定义最好用大写,#define US_N using namespace