gpt4 book ai didi

c++ - 开发人员无法执行 .exe 错误 193 : %1 not a valid win32 application

转载 作者:塔克拉玛干 更新时间:2023-11-03 01:27:15 25 4
gpt4 key购买 nike

所以我试图像往常一样测试运行我的开发 c++,它说无法执行 location/name.exe 错误 193:%1 不是有效的 win 32 应用程序。我还没有将编译器用于任何复杂的东西。

#include<stdio.h>
#include<math.h>
#define PI 3.14
int main()
{
int r = 3;

float area = PI*pow(r,2);

printf("the area of the circle is %f",area);

return 0;
}

我正在使用 Dev c++ GCC (MinGW) 编译器。

它编译正确,但是当我尝试运行时,它收到此错误消息

无法执行“C:\Users\SIM JONES NIGL TD\Desktop\c language\areaofcircle2.exe”:错误 193:%1 不是有效的 Win32 应用程序。

按任意键继续

最佳答案

我刚刚遇到这个问题,我注意到如果您只是将程序保存在不包含空格的文件夹中。我的默认文件夹设置在我的文档中,所以我在我的 F: 驱动器中创建了一个名为程序的文件夹,并将程序保存在其中,然后编译它们。那时我没有遇到这个错误:)

关于c++ - 开发人员无法执行 .exe 错误 193 : %1 not a valid win32 application,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40188810/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com