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

正文內(nèi)容

c語言課程設計(數(shù)據(jù)分節(jié)與刪除字符、學生成績統(tǒng)計程序的設計)(編輯修改稿)

2025-07-11 10:01 本頁面
 

【文章內(nèi)容簡介】 reignLanguage_high]. \t\t\tthe Computer hignest score:\n stud[Computer_high].num,stud[Computer_high].name,stud[Computer_high].ter \n\n \t\t\tthe Physics lowest score:\n stud[Physics_low].num,stud[Physics_low].name,stud[Physics_low]. \t\t\tthe Mathematics lowest score:\n stud[Mathematics_low].num,stud[Mathematics_low].name,stud[Mathematics_low].m_Score.Mathematics \t\t\tthe Foreign Language lowest score:\n stud[ForeignLanguage_low].num,stud[ForeignLanguage_low].name,stud[ForeignLanguage_low]. \t\t\tthe Computer lowest score:\n stud[Computer_low].num,stud[Computer_low].name,stud[Computer_low]. 9 結束 statistic(Student stud[],int n) 沈陽理工大學課程設計專用紙 No. 11 沈陽理工大學 開始 n=0 menu_select()=1 menu_select()=2 menu_select()=3 menu_select()=0 輸出\t\t\tInput Records\n \t\t\tStatistic\n 輸出\t\t\tDisplay All Records\n 輸出 \t\t\t n=Input(stu,n) break Display(stu,n) break Statistic(stu,n) system(pause) exit(0) 輸出 \t\t\t system(pause) break 輸出 \t\t\tHave a Good Luck,Byebye!\n 結束 是 否 是 否 是 否 是 否 是 否 main() 沈陽理工大學課程設計專用紙 No. 12 沈陽理工大學 三 、 編程實現(xiàn) 程序的具體 C 語言代 碼如下: 第 1 題: include include int main() { int a。 scanf(%d,amp。a)。 int i=1,b。 int temp =a。 b = temp/10。 while(b) { i++。 temp = b。 b = temp/10。 } int c=(i%3==0)?i/3:(i/3+1)。 int *p = (int *)malloc(c*sizeof(int))。 int j,d。 for(j=0。jc。j++) { d=a%1000。 p[cj1] = d。 a=a/1000。 } for(j=0。jc。j++) { if(j !=c1) printf(%d,p[j])。 else printf(%d,p[j])。 } getchar()。 getchar()。 } 沈陽理工大學課程設計專用紙 No. 13 沈陽理工大學 第 2 題: include include void fun(char a[],int k,int n)。 main() { char a[80]。 int k。 int n。 printf(input string:\n)。 gets(a)。 printf(input k,n:\n)。 scanf(%d,%d,amp。k,amp。n)。 fun(a,k, n)。 return 0。 } void fun(char a[],int k,int n) { int i。 for(i=k。istrlen(a)n。i++) { a[i]=a[i+n]。 } a[i]=39。\039。 puts(a)。 } 第 3 題: include /*引用庫函數(shù) */ include include include typedef struct { int Physics。/*物理成績 */ int Mathematics。/*數(shù)學成績 */ int ForeignLanguage。/*外語成績 */ int Computer。/*計算機成績 */ }Score。 沈陽理工大學課程設計專用紙 No. 14 沈陽理工大學 typedef struct /*定義結構體數(shù)組 */ { char num[10]。 /*學號 */ char name[20]。 /*姓名 */ // int score。 /*成績 */ Score m_Score。 }Student。 Student stu[80]。 /*結構體數(shù)組變量 */ int menu_select() /*菜單函數(shù) */ { char c。 do{ system(cls)。 /*運行前清屏 */ printf(\t\t****Students39。 Grade Management System****\n)。 /*菜單選擇 */ printf(\t\t | 1. 輸入 |\n)。 printf(\t\t | 2. 顯示 |\n)。 printf(\t\t | 3. 統(tǒng)計 |\n)。 printf(\t\t | 0. 退出 |\n)。 printf(\t\t*****************************************\n)。 printf(\t\t\tGive your Choice(03):)。
點擊復制文檔內(nèi)容
畢業(yè)設計相關推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1