declaration syntax

来源:百度知道 编辑:UC知道 时间:2024/05/31 03:59:17
#include<stdio.h>
#include<string.h>
#define N 3
struct worker
{ char zgh[5];
char name[15];
char sex;
int jbgz;
int fjgz;
int jj;
int zgz;
int sdf;
int sj;
int ykgz,yfgz;
}zg[N];
main()
{ int key;
int keynum;
for(;;)
{ printf("gongziguanli\n");
printf("........................................................\n");
printf("0.exit the promgramm.\t\t1.Input.\n");
printf("2.Output.\t\t3.Sort.\n");
printf("4.Total pay.\t\t5.Search.\n");
printf("........................................................\n");
printf("\tplease choose(0--5):");
scanf("%d",&key);
switch(key){
case 0:exit(0);
case 1:printf("Input.\n");break;

File Edit Run Compile Project Options Debug Break/watch
╒════════════════════════════════════ Edit ════════════════════════════════════╕
│Error: Declaration syntax error │
│include "stdio.h" │
│void main() │
│{int a,b,c; │
│ while(a<=19) │
│ {a=0; │
│ while(b<=33) │
│ {c=100-a-b │
│ if(5*a+3*b+1/3*c==100) │
│ printf("d%d%d%\n",a,b,c); │
│ } │
│ b++; │
│ } │
│ a++; │
│} │
│ │
│ │
│ │
├—————————————————————————————————— Message ———————————————————————————————————┤
│ Compiling E:\TDDOWN~1\╚φ╝■\▒α│╠\TURBOC2\TURBOC2\NONAME.C: │
│•Error E:\TDDOWN~1\╚φ╝■\▒α│╠\TURBOC2\TURBOC2\NONAME.C 1: Declaration syntax er│
└——————————————————————————————————————————————————————————————————————————————┘
F1-Help F5-Zoom F6-Switch F7-Trace F8-Step F9-Make F10-Menu NUM