--运行失败--
Command failed: "C:\AhaCpp\resources\core\bin\gcc.exe" "C:\Users\Administrator\Desktop\1.c" -o "C:\Users\Administrator\Desktop\1.exe"
C:\Users\Administrator\Desktop\1.c:1:19: warning: extra tokens at end of #include directive
#include <stdio.h>#include <stdlib.h>#include <conio.h>#include <windows.h>#include <time.h>int main(){ int a,b,c,d,i,f,g; char q; a=0; b=0; c=0; d=0; i=0; f=0; g=0; printf(" 计算面积\n"); printf(" 1:正方形 2:长方形 3:三角形 4:平行四边形 5:梯形\n"); printf(" 输入1~5有效,其他无效"); q=getch(); if (q=5) system("cls"); printf("上底 下底 高"); scanf("",&a,&b,&c); i=(a+b)c/2; printf("%d",i); system("pause"); return 0; } if (q=4) { system("cls"); printf("底 高"); scanf("%d%d",&a,&b); i=ab; printf("%d",i); system("pause"); return 0; } if (q=3) { system("cls"); printf("底 高"); i=ab/2; printf("%d",i); system("pause"); return 0; } if (q=2) {system("cls"); printf("长 宽");scanf("%d%d",&a,&b); i=ab; printf("%d",i); system("pause"); return 0; } if (q=1) { system("cls"); printf("长"); scanf("%d",&a); i=a*a; printf("%d",i); system("pause"); return 0; }
^
c:/ahacpp/resources/core/bin/../lib/gcc/mingw32/5.3.0/../../../libmingw32.a(main.o):(.text.startup+0xa0): undefined reference to `WinMain@16'
collect2.exe: error: ld returned 1 exit status
1. 关于#c语言#的问题:这个printf到底出现什么问题啊!
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
1条回答 默认 最新
- Staringabyss 2021-12-14 14:05关注
如果是printf,我可以告诉你,他是黑的,也就是;大小写不对
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥20 西门子S7-Graph,S7-300,梯形图
- ¥50 用易语言http 访问不了网页
- ¥50 safari浏览器fetch提交数据后数据丢失问题
- ¥15 matlab不知道怎么改,求解答!!
- ¥15 永磁直线电机的电流环pi调不出来
- ¥15 用stata实现聚类的代码
- ¥15 请问paddlehub能支持移动端开发吗?在Android studio上该如何部署?
- ¥20 docker里部署springboot项目,访问不到扬声器
- ¥15 netty整合springboot之后自动重连失效
- ¥15 悬赏!微信开发者工具报错,求帮改