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

正文內(nèi)容

編程實(shí)習(xí)報(bào)告09061109-楊宇超(留存版)

  

【正文】 The same appliesto marks.*/void InsertStudent(char*** students,int*** marks){int found, i。gets(line)。void ShowClass(char** students,int** marks)。 編 程 實(shí) 習(xí) 報(bào) 告 (2009屆)題 目: 用字符串指針實(shí)現(xiàn)學(xué)生成績(jī)管理系統(tǒng)姓 名: 楊宇超 學(xué) 號(hào): 09061109 學(xué) 院: 自動(dòng)化學(xué)院 班 級(jí): 09063011 指導(dǎo)教師: 席旭剛 高云園2022年8月20日 2011年7月5日摘要:本文介紹運(yùn)用C語(yǔ)言中單用字符串指針實(shí)現(xiàn)一個(gè)學(xué)生信息管理工具軟件,主要功能有:add、show、sort、Delete。 顯示所有學(xué)生信息基本想法:直接用printf 輸出,void EditMarks(char** students,int** marks)。if (sscanf(line,%d,amp。char** students1。 *students = students1。if ((marks1[i] = (int*) malloc(5*sizeof(int))) == NULL) merror(9)。 name = ReadLine()。ib。 int* temp1。}}/* function EditMarks *//*This function prompts the user to enter a student namewhose marks are to be edited. The precise form of the promptis Enter Student Name whose marks are to be edited:Then this function reads the name from standard input.But it must be able to read any name of any size!! Thus you haveto allocate memory (using malloc()) to read the input into, and ifit is not big enough, must use realloc() to extend it. You are notallowed to allocate more than 10 bytes in one allocation or extendyour segment by more than 10 bytes in one call to realloc().Do not forget to deallocate the memory before exiting the function!Note that this part of the code is the same as in InsertStudent()and DeleteStudent(), so you can either copy it or write a functionthat would do it for all three.If the student is not found in the array students, a warning messagestudent xxx not in the Class List is displayed on the screen andthe function terminates. If it is found, the students name followedby : and his/her five marks are displayed (again, 1 must be shownas a space, as in ShowClass()). Let us assume that the student inquestion has marks 10,1,20,15,5Then the function displays a prompt to the user forthe first mark to leave the 1st mark 10 unchanged pressenterotherwise type the new mark and pressenter and reads the user39。 scanf(%d,%d,%d,%d,%d,amp。 i++) { buf[++j] = getchar()。看了書(shū)后,最后都一一解決了。}/*endwhile*/return buf。while(1) { for(i = 0。,39。students[i]!=NULL。 return。 marks1[i]=marksx[i]。 printf(Enter Student Name to be deleted from Class List:\n)。free((void*) name)。 marks1[0][0]=marks1[0][1]=marks1[0][2]=marks1[0][3]=marks1[0][4]=0。}/*endwhile*/return 0。fflush(stdout)。N次排序 先進(jìn)行n1次比大小,找到最小的,與第一個(gè)交換,再進(jìn)行n2次。程序由七個(gè)子函數(shù)(creat、edit、extra、imdelete、print、save、)和一個(gè)主函數(shù)(main)組成。 編輯學(xué)生成績(jī)基本想法:先讀取要編輯的學(xué)生姓名,然后與所有的學(xué)生姓名進(jìn)行比較,判斷是否在名單內(nèi),若不在,就輸出不在,否則 就再讀取該學(xué)生的5個(gè)成績(jī)到 marks 三、編碼實(shí)現(xiàn)include include include void InsertStudent(char*** students,int*** marks)。menu) != 1){ printf(incorrect entry)。int** marks1。 *marks = marks1。marks1[i][0]=marks1[i][1]=marks1[i][2]=marks1[i][3]=marks1[i][4]=0。 n
點(diǎn)擊復(fù)制文檔內(nèi)容
環(huán)評(píng)公示相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1