【发布时间】:2013-09-05 21:08:44
【问题描述】:
我在 Windows 8 上安装了 Dev C++,这是我的第一个程序,但是在我运行它之前它运行平稳。
这是我的第一个程序:
当我编译它时...
然而,当我运行它时,这里出现了问题......
但是编译器日志显示此消息:
Compiler: Default compiler
Executing gcc.exe...
gcc.exe "C:\Users\Zainab\Downloads\Table.c (2).c" -o "C:\Users\Zainab\Downloads\Table.c (2).exe" -I"C:\Dev-Cpp\include" -L"C:\Dev-Cpp\lib"
gcc.exe: Internal error: Aborted (program collect2)
Please submit a full bug report.
代码:
#include<stdio.h>
int main()
{
int a, b, c=1;
printf("Enter the table of:");
scanf("%d", &a);
printf("Enter the number of times:");
scanf("%d", &b);
while (c <= b) {
printf("%d", a);
printf("* %d", c);
printf("= %d", a*c);
if (c < b) {
printf("\n");
}
c++;
}
return 0;
getch();
}
【问题讨论】:
-
Dev-C++ ?!?你能用一些更新的东西,比如 Code::Blocks 吗?
-
也许检查“日志”按钮以查看实际的编译器错误?
-
请将您的实际代码放在这里。不是打印屏幕。
-
Dev-C++ 已被废弃多年。请使用更新的内容,例如 Code::Blocks。
-
@OP:请参阅标签
dev-c++的info部分以找到 Dev-C++ 的一些替代方案。