即使我在Dev-C++中运行一个简单的代码,我也会收到这个错误消息,请帮我解决问题!。
// Demonstration of variables
#include <iostream>
using namespace std;
int main()
{
unsigned short int Width = 5, Length;
Length = 10;
// create an unsigned short and initialize with result
// of multiplying Width by Length
unsigned short int Area = Width * Length;
cout << "Width:" << Width << "n";
cout << "Length: " << Length << endl;
cout << "Area: " << Area << endl;
return 0;
}
这是错误信息:
C:Program FilesDev-CppMinGW64x86_64-w64-mingw32binld.exe cannot open output file C:Program FilesDev-CppMinGW64binarea.exe: Permission denied
C:Program FilesDev-CppMinGW64bincollect2.exe [Error] ld returned 1 exit status
在更合适的位置创建项目,如"我的文档"。"程序文件"是指程序文件。你的操作系统不会允许你在那里创建这样的新应用程序。这违反了安全规定。