S->A=(struct node *)malloc(sizeof(struct node)*size);if(S->A==NULL){printf("out of space");getch();exit(1);} S->tos=-1;S->size=size;} push(struct Stack *S ,struct node e) /*入栈*/ { if(S->tos==S->size-1){printf("full");getch();return;} S->to...
readstr(fp, c); strcpy(p->pe.sex, c); readstr(fp, c); strcpy(p->pe.GJ, c); readstr(fp, c); strcpy(p->pe.MZ, c); readstr(fp, c); strcpy(p->pe.XL, c); readstr(fp, c); strcpy(p->te.SJ, c); readstr(fp, c); strcpy(p->te.JD, c); readstr(fp, c); st...
{ int No; //学号 float Chinese; //语文 float math; //数学 float English; //外语 float Sum; //总分 }student[50];//全局变量,记录学生的个数 int n = 0;//根据学号查找是否存在,-1不存在 int isRepeat(int No);/*显示提示信息 6.建立一个菜单,如下图所示 1.依次输入成...
printf("第%d个学生3门课成绩为:", i + 1);printf("%4d%4d%4d\n", stu[i].stuscore[0], stu[i].stuscore[1], stu[i].stuscore[2]);} }
20 2013-10-22 急求一百行左右的C语言编程! 2 2007-07-27 求3个100行左右的C语言程序 要代码 无限感谢!!! 11 2014-06-26 C语言程序设计100行左右 4 2012-06-12 一百行简单C语言编程,要有解析的啊,速求啊, 2014-09-26 高分悬赏求一个C语言100行左右的程序代码,希望有详细的注释......
2015-01-31 大学,C语言程序设计课程设计,至少编写代码300行左右 1 2011-03-02 求C语言小程序源代码,300行左右 43 2014-01-12 求C语言课程设计的源代码 2013-07-20 求C语言程序设计 5个小程序 ,共300行代码 2013-04-20 需要一个 linux 下c语言 的程序 300行源代码左右?... 2010-01-19 急求c...
define STU_NUM 10 /*宏定义学生的数量*/ struct student /*定义一个结构体用来存放学生学号、三门课成绩、总分及平均成绩*/ { char stu_id[20]; /*学生学号;*/ float score[3]; /*三门课成绩;*/ float total; /*总成绩;*/ float aver; /*平均成绩;*/ };/*排序用一个函数来...
include "stdio.h"main(){ int flag=1;float sum=0,i;for(i=1;i<=10;i++){ sum+=(1/i)*flag;flag=-flag;} printf("%f ",sum);}
for(int i=0;i<N;i++){ printf("学生姓名:%s\n",stud[i].name);printf("学生学号:%s\n",stud[i].num);printf("学生性别:%s\n",stud[i].sex);printf("学生三门课的成绩:%d %d %d\n",stud[i].score[0],stud[i].score[1],stud[i].score[2]);printf("\n");} } ...
include void Print(int place[25][80])//,int color[10],int star[10]){ int i,j;for(i=0;i<25;i++)for(j=0;j<80;j++)if(place[i][j]!=0&&place[i][j]!=-1){ printf("%c",'A'+place[i][j]-1);} else if(place[i][j]==-1)printf("#");else printf(" "...