第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

為什么輸入1彈不出“用戶指令--->>新建聯(lián)系人:“,求各位大神解答,謝謝啦

#include<stdlib.h>

#include"List.h"

#include<iostream>

using namespace std;



void createPerson(List *pList)

{

Node node;

Person person;

cout<<"請輸入姓名:";

cin>>person.name;

cout<<"請輸入電話:";

cin>>person.phone;

node.data=person;

pList->ListInsertTail(&node);

}

int menu()

{

//顯示通訊錄功能菜單

cout<<"功能菜單"<<endl;

cout<<"1.新建聯(lián)系人"<<endl;

cout<<"2.刪除聯(lián)系人"<<endl;

cout<<"3.瀏覽通訊錄"<<endl;

cout<<"4.退出通訊錄"<<endl;

cout<<"請輸入:";

int order=0;

cin>>order;

return order;

}

int main(void){

int userOrder=0;

List *pList=new List();

while(userOrder!=4)

{

userOrder=menu();

switch(userOrder)

{

case1:

cout<<"用戶指令--->>新建聯(lián)系人:"<<endl;

createPerson(pList);

break;

case2:

cout<<"用戶指令--->>刪除聯(lián)系人:"<<endl;

? ? break;

case3:

cout<<"用戶指令--->>瀏覽通訊錄:"<<endl;

pList->ListTraverse();

break;

case4:

cout<<"用戶指令--->>退出通訊錄:"<<endl;

break;

default:

break;

}

}

delete pList;

pList=NULL;

}


正在回答

1 回答

case 1之間應(yīng)該有空格噠。

2 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

為什么輸入1彈不出“用戶指令--->>新建聯(lián)系人:“,求各位大神解答,謝謝啦

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號