设置:?
在VS2005的菜单->项目->属性->配置属性->调试?? 命令行参数 中输入运行参数,即可带参数调试了。
同类问题:
问题一、基于控制台的程序,运行一闪而过,没法看结果,为什么不能和VC6.0那样显示”press any key to continue…”?
答:system function
答:system function
?? ??c的库函数包含于dos.h头文件中。但在vs2005的控制台程序中使用时,发现必须包含stdlib.h头文件,才能正常使用。
msdn手册:
int system( const char *command ); int _wsystem( const wchar_t *command );