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

正文內(nèi)容

倉庫管理系統(tǒng)程序設(shè)計訓(xùn)練報告-在線瀏覽

2024-09-12 23:02本頁面
  

【正文】 流程圖 main()函數(shù)流程圖:namesortList(h)numberssortList(h)breakbreakinput select select=0? select=1? Select=2?createList()breakbreakbreakbreakreturnmain()YNNYY Select=3?NN Select=4?N Select=5?YYprintList(h)Ndelproduct(h)NNN Select=7? Select=6?YYYinsertproduct(h) Select=10?N Select=9? Select=8?breakbreakYYchangeproduct(h) find(h) load(h)breakbreakY save(h)createList() 函數(shù)流程圖:printf(....)。printf(....)。return hprintList()函數(shù)流程圖: returnnewNodenext!=NULL?N printf(.....)。YNstrcmp(curname,name.)?curpre=curcur=curnextfind() 函數(shù)流程圖:N changeproduct() 函數(shù)流程圖:input nameYcur==NULL?printf(.......)。進(jìn)入菜單, 選擇你要執(zhí)行模塊,在初次使用時,應(yīng)收先選擇數(shù)字1 輸入航班信息后才能使用其他模塊,/*倉庫產(chǎn)品管理系統(tǒng)亓學(xué)忠*/include /*包含常用庫函數(shù)*/include /*包含strcmp、strcpy字符串比較拷貝函數(shù)*/include /*包含exit強制結(jié)束函數(shù)*/includestruct product /*定義相關(guān)鏈表*/{ char name[12]。 /*制造商*/ char origin[30]。 /*產(chǎn)品原有數(shù)量*/ int nowqun。 /*產(chǎn)品編號*/ char location[30]。 /*指向下一個同類型結(jié)構(gòu)*/}。 printf(\t☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆\n)。 printf(\t☆ ☆\n)。 printf(\t☆ ☆\n)。 printf(\t☆ 歡迎使用產(chǎn)品庫存管理系統(tǒng) ☆\n)。 printf(\t☆ 按任意鍵繼續(xù) ☆\n)。 printf(\t☆ ☆\n)。 printf(\t☆ ☆\n)。 printf(\t☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆\n)。}。 /*定義頭節(jié)點、當(dāng)前節(jié)點、下一個節(jié)點*/ int n,i。 scanf(%d,amp。 for(i=0。i++) /*用for循環(huán)輸入產(chǎn)品信息*/ { if(i==0) /*輸入頭節(jié)點信息*/ {A: printf(\t☆請輸入第%d種產(chǎn)品的:名稱 制造商 產(chǎn)地 原產(chǎn)量 現(xiàn)有量 編號 存放位置\n,i+1)。 /*開辟curnext需要的空間*/ printf(\t)。(curnextoriginqun),amp。(curnextnumbers),curnextlocation)。 goto A。 head=curnext。 /*將cuenext賦給當(dāng)前節(jié)點cur*/ } else { curnext=(struct product*)malloc(sizeof(struct product))。 printf(\t)。(curnextoriginqun),amp。(curnextnumbers),curnextlocation)。 goto B。 curnext=curnext。 /*當(dāng)前節(jié)點后移*/ } } system(cls)。\n\n)。 /*結(jié)束輸入信息并返回主菜單*/}。 newNode=h。 printf(\n\t名稱\t制造商\t產(chǎn)地\t原產(chǎn)量\t現(xiàn)有量\t編號\t存放位置)。 newNode=newNodenext。 printf(\n)。 char name[12]。 scanf(%s,name)。 while(cur!=NULLamp。strcmp(curname,name)) /*查找產(chǎn)品位置*/ { curpre=cur。 /*cur也后移*/ } if(cur==NULL) /*如果沒有找到*/ { printf(\n\t★沒有找到該產(chǎn)品,請重新輸入!\n\n)。 } if(!strcmp(curname,name)) /*如果找到該產(chǎn)品*/ { if(cur==h) /*如果該節(jié)點在鏈?zhǔn)?/ { h=hnext。 /*釋放鏈?zhǔn)姿純?nèi)存*/ } else { if(curnext==NULL) /*如果該節(jié)點在鏈尾*/ { curprenext=NULL。 /*釋放鏈尾所占內(nèi)存*/ } else /*如果該節(jié)點在鏈中*/ { curprenext=curnext。 /*釋放該節(jié)點所占內(nèi)存*/ } } } system(cls)。 return h。 char name[12]。 scanf(%s,name)。 while(cur!=NULLam
點擊復(fù)制文檔內(nèi)容
試題試卷相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1