这个代码为什么就是过不去呢?这已经是最基础的代码了?真的不明白为什么过不去?请高手指点下吧!!!
#include <iostream>
using namespace std;
int main( )
{
int numbers;
cout << "hello reader!.\n"; //123
cin >> numbers;
if (numbers < 1)
cout << "thanks!.\n";
else
cout << "ok,baby!";
return 0;
}
编辑器会出现下边提示
编译器: Default compiler
执行 g++.exe...
g++.exe "C:\Program Files\DEV-C++\ME\未命名2.cpp" -o "C:\Program Files\DEV-C++\ME\未命名2.exe" -I"C:\Program Files\DEV-C++\lib\gcc\mingw32\3.4.2\include" -I"C:\Program Files\DEV-C++\include\c++\3.4.2\backward" -I"C:\Program Files\DEV-C++\include\c++\3.4.2\mingw32" -I"C:\Program Files\DEV-C++\include\c++\3.4.2" -I"C:\Program Files\DEV-C++\include" -L"C:\Program Files\DEV-C++\Lib"
C:\Program Files\DEV-C++\Bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot open output file C:\Program Files\DEV-C++\ME\未命名2.exe: Permission denied
collect2: ld returned 1 exit status
执行结束
[此贴子已经被作者于2007-11-4 17:43:03编辑过]