freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c語言程序設(shè)計入門篇(參考版)

2025-03-07 16:34本頁面
  

【正文】 printinformation(stu1)。 sortselect(amp。 while(selectnum!=0) { sort(stu1,selectnum)。 sortselect(amp。 struct student stu1[N]。 scanf(%d,select)。 0: exit!!! \n)。 \n)。 printf(5: math。 4: chinese。 \n)。 printf(1: stunum。 } … 1 分 } void sortselect(int *select) { printf(\n\nplease select the num of sort !\n)。 default: printf(thanks!)。 case 7: sortbysum(stu)。 case 6: sortbyputer(stu)。 case 5: sortbymath(stu)。 case 4: sortbychinese(stu)。 case 3: sortbystuage(stu)。 case 2: sortbystuname(stu)。 } } void sort(struct student stu[],int p) … 1 分 { switch(p) { case 1: sortbystunum(stu)。 stu[j]=stu[j+1]。jNi1。iN1。 struct student t。 stu[j+1]=t。j++) if(stu[j].mathstu[j+1].math) { t=stu[j]。i++) for(j=0。 for(i=0。 } } void sortbymath(struct student stu[]) { int i,j。 stu[j]=stu[j+1]。jNi1。iN1。 struct student t。 stu[j+1]=t。j++) if(stu[j].stuagestu[j+1].stuage) { t=stu[j]。i++) for(j=0。 for(i=0。 } } void sortbystuage(struct student stu[]) { int i,j。 stu[j]=stu[j+1]。jNi1。iN1。 struct student t。 stu[j+1]=t。j++) if(strcmp(stu[j].stuname,stu[j+1].stuname)0) … 1 分 { t=stu[j]。i++) for(j=0。 for(i=0。 … 1 分 } } void sortbystuname(struct student stu[]) { int i,j。 stu[j]=stu[j+1]。jNi1。iN1。 struct student t。 stu[i].sum=stu[i].chinese+stu[i].math+stu[i].puter。 scanf(%d,amp。stu[i].math)。 printf(input the %d student math score:,i+1)。 scanf(%d,amp。stu[i].stuage)。 printf(input the %d student stuage:,i+1)。 printf(input the %d student stuname:,i+1)。 scanf(%d,amp。iN。 printf(input %d student information:\n,m)。 } void readinformation(struct student stu[]) { int i,m。 printf(\n)。iN。 printspace()。 } void printinformation(struct student stu[]) { int i。i++) printf(_)。 for(i=0。 }。 int puter。 int chinese。 char stuname[10]。 使用函數(shù)方法定義各個模塊。 學(xué)生信息包括:學(xué)號、英文姓名、年齡;學(xué)生成績包括:語文、數(shù)學(xué)、計算機。 二、 實驗內(nèi)容 編寫一個學(xué)生信息排序程序。 掌握 C 程序的結(jié)構(gòu)化程序設(shè)計方法,能使用 C語言開發(fā)簡單的應(yīng)用程序。 } return (n)。 while(*s!=‘ \0’ ) { n++。 printf(“ The length of list2=%d\n” ,n2)。 printf(“ The length of list1=%d\n” ,n1)。 n2=strlength(list2)。 char *list1=“ See no evil,hear no evil,” 。 } include “ ” int strlength(char *s)。 cp2。 *cp2=c。i++) { c=*cp1。 for(i=0。 } cp2。 while(*cp2!=‘ \0’) { n++。 cp1=ch。 int i,n=0
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1