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

正文內(nèi)容

數(shù)據(jù)結(jié)構(gòu)實(shí)驗(yàn)報(bào)告棧和隊(duì)列-在線瀏覽

2024-08-31 12:05本頁(yè)面
  

【正文】 int Pop(SqStack *S,ElemType *e){ if(Stop==Sbase) { return ERROR。 *e=*Stop。}/*Pop*/int PopSq(SqStack *S){ if(Stop==Sbase) { return ERROR。 return OK。 } *e=*(Stop1)。}/*GetTop*//*(6)清空棧函數(shù)*/int ClearStack(SqStack *S){ if(InitStack(S)) { printf(Init Success!)。 } else { printf(Init Fail!)。 }}/*ClearStack*//*(8)判斷棧是否為空*/int StackEmpty(SqStack *S){ if(Sbase==Stop) return OK。}/*StackEmpty*//*(9)返回棧的長(zhǎng)度函數(shù)*/int StackLength(SqStack *S){ return StopSbase。 SqStack sq。sq)。 printf(input count:)。count)。sq,count%2)。 } while(Pop(amp。e)) { printf(%d ,e)。 InitStack(amp。 char a[100],c。 printf(input :)。\n39。 } for(i=0。i++) { if(a[i]==39。) Push(amp。 if(a[i]==39。) { PopSq(amp。 } } if(StackEmpty(amp。 } else { printf(error!)。 char s[3]。 /*定義整形變量*/ for (i=0。 i++) /*輸出主菜單數(shù)組*/ printf(%s,menu[i])。 /*在菜單窗口外顯示提示信息*/ scanf(%s,s)。 /*將輸入的字符串轉(zhuǎn)化為整形數(shù)*/ } while (c0||c9)。 /*返回選擇項(xiàng),主程序根據(jù)該數(shù)調(diào)用相應(yīng)的函數(shù)*/}int main(){ SqStack ss。 InitStack(amp。 for (。 if(InitStack(amp。 else printf(Init ERROR!\n)。 case 2: printf(\n2Push Element:\n)。 while(scanf(%d,amp。ss,e)) printf(Push %d OK!\n,e)。 printf(input data:(Terminated by inputing a character))。 break。 if(GetTop(amp。e)) printf(Top is %d,e)。 break。 printf(StackLength is %d,StackLength(amp。 break。 if(StackEmpty(amp。 } else { printf(Stack is not Empty!)。 case 6: printf(\n6Pop Element:\n)。ss)) { printf(Stack is Empty!)。 while(Pop(amp。e)) { printf(%d ,e)。 case 7: printf(\n7ClearStack:\n)。ss)。 break。 Conversion()。 case 9: printf(\n9Correct:\n)。 Correct()。 case 0: exit(0)。},實(shí)現(xiàn)循環(huán)隊(duì)列的相關(guān)操作。函數(shù)需返回的其他數(shù)據(jù),使用函數(shù)參數(shù)返回。 /*定義元素的類型*//*(1)循環(huán)隊(duì)
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1