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

正文內(nèi)容

計(jì)算機(jī)技術(shù)基礎(chǔ)c語(yǔ)言課程設(shè)計(jì)--花店經(jīng)營(yíng)管理系統(tǒng)-在線瀏覽

2025-03-02 18:00本頁(yè)面
  

【正文】 進(jìn)行switch,根據(jù)所需內(nèi)容,選擇執(zhí)行。typedef struct /*結(jié)構(gòu)體定義*/{ char name[20]。 float rate。}FLOWER。 /*定義了5項(xiàng)命令的指針類(lèi)型*/void enter_data(FLOWER flower[])。 /*定義銷(xiāo)售函數(shù)*/void put_data(FLOWER flower[])。/*定義查詢(xún)函數(shù)*/int changecmd(char cmd[])。 float price。\039。\039。\039。\039。\039。 char exits[5]=quit。 int i。iSIZE。 /*成員設(shè)置,各類(lèi)型初始化*/ flower[i].rate=0。 flower[i].color=white。 printf(\nYou can input 39。,39。,39。,39。,39。:\n)。 if(strcmp(cmd,exits)==0) exit(1)。 switch(recmd) { case 0: printf(a bad mand please input a corrcet cmd \n)。 case 1: price=buy(flower)。 else printf(\n OK,Please pay money %f \n,price)。 case 2: enter_data(flower)。 case 3: put_data(flower)。 case 4: findflower(flower)。 case 5: printf(\nYoucaninput 39。,39。,39。,39。,39。:\n)。 } }}/*命令解釋函數(shù)*//*該函數(shù)處理接收到的命令 通過(guò)與命令數(shù)組里的預(yù)定義命令比較 返回命令在數(shù)組中的位置*/int changecmd(char cmd[]){ int i=0。iCMDSIZE。 } return 0。 for(i=0。i++) { printf(Please enter the flowers:\n)。 scanf(%s,flower[i].name)。 scanf(%f,amp。 printf(Flower amount is:\n)。flower[i].amount)。 while(flag) /*接受用戶(hù)選擇的顏色*/ { printf(0red\t1white\t2yellow\t3purple\t4orante\n)。 scanf(%d,amp。 if(flower[i].color=0amp。flower[i].color=4) flag=0。 } }}/*輸出現(xiàn)有庫(kù)存的鮮花數(shù)據(jù)的函數(shù)定義*/void put_data(
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1