[求助]如何做才能简化像"using namespace std;"等C++用语?
如何设置以简化像"using namespace std;"和"cin.get();"等C++用语?我用的是VC++2005,
比如我要输入"using namespace std;",我想用"using"来代替"using namespace std;",该如何做才能实现呢?
请各位大哥大姐给点建议!!
2007-05-15 16:14

2007-05-15 16:23
2007-05-15 16:32
2007-05-15 16:39
各位大哥大姐!
那我用VC++2005中编程,调试后结果总是一闪而过,必须要在源文件的"return 0;"前加上
cin.get();
cin.get();
才能长时间的显示,有什么办法用其他简单的字符来代替吗?

2007-05-16 14:47
2007-05-16 15:17
#include <iostream>
#define using using namespace
int main()
{
using std;
cout<<\"hello world!\"<<endl;
}
2007-05-16 15:23
2007-05-16 16:00


2007-05-16 17:32
#include <iostream>
#define using using namespace
int main()
{
using std;
cout<<\"hello world!\"<<endl;
}
宏定义最好用大写,#define US_N using namespace

2007-05-16 17:33