没有重复打开程序。也没用中文作为路径,哪怕再简单的项目就算是输出HELLO WORLD都会报错。
重复定义了这个show方法吗
回答:你选择的是哪种项目,控制台应用很明显不会报错,而桌面应用程序(即Windows Application)需要一些其他的输入输出了(没学过,但直接创建可以运行,空白界面)
控制台应用程序如下:
#include <iostream>
using namespace std;
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char** argv) {
cout<<"hello";
return 0;
}
这个没问题,会输出“hello”
关于桌面应用程序不太懂,可以考虑删掉重装一下DevC++,反正也简单