|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
自己写了一个小程序,系统总会报错
程序经个人多次检验,没有问题啊
但就是无法运行
错误报告如下:
collect2.exe:error:Id returned 1 exit status -gcc
程序如下:
- #include <stdio.h>
- #include <stdlib.h>
- int main( )
- {
- int a,b,c;
- a=9;
- b=3;
- c=a+b;
- printf("%d+%d=%d\n",a,b,c);
- c=a-b;
- printf("%d-%d=%d\n",a,b,c);
- c=a*b;
- printf("%d*%d=%d\n",a,b,c);
- c=a/b;
- printf("%d/%d=%d\n",a,b,c);
- ststem("pause");
- return 0;
- }
复制代码
// ststem("pause");
system("pause");
- #include <stdio.h>
- #include <stdlib.h>
- int main()
- {
- int a, b, c;
- a = 9;
- b = 3;
- c = a + b;
- printf("%d+%d=%d\n", a, b, c);
- c = a - b;
- printf("%d-%d=%d\n", a, b, c);
- c = a * b;
- printf("%d*%d=%d\n", a, b, c);
- c = a / b;
- printf("%d/%d=%d\n", a, b, c);
- //ststem("pause");
- system("pause");
- return 0;
- }
复制代码
|
|