没有合适的资源?快使用搜索试试~ 我知道了~
c语言 代码 通讯录 #include <iostream> #include<string> #include<vector> using namespace std; struct book { string name; string phoneNumber; int QQ; string address; string mailbox; }; void search(vector<book> TX); void change(vector<book>&TX;); void DEL(vector<book> &TX;); int main() { int j;
资源推荐
资源详情
资源评论
#include <iostream>
#include<string>
#include<vector>
using namespace std;
struct book
{
string name;
string phoneNumber;
int QQ;
string address;
string mailbox;
};
void search(vector<book> TX);
void change(vector<book>&TX);
void DEL(vector<book> &TX);
int main()
{
int j;
bool flag=0;
vector<book> TX;
book temp;
int choice;
while(true)
{
cout<<"〓〓〓〓〓〓〓〓●●●●●●●●●〓〓〓〓〓〓〓〓〓〓"<<endl;
#include<string>
#include<vector>
using namespace std;
struct book
{
string name;
string phoneNumber;
int QQ;
string address;
string mailbox;
};
void search(vector<book> TX);
void change(vector<book>&TX);
void DEL(vector<book> &TX);
int main()
{
int j;
bool flag=0;
vector<book> TX;
book temp;
int choice;
while(true)
{
cout<<"〓〓〓〓〓〓〓〓●●●●●●●●●〓〓〓〓〓〓〓〓〓〓"<<endl;
cout<<"★ ≡≡≡≡≡≡≡≡≡≡≡ ★"<<endl;
cout<<"★ || 1.号码输入 || ★"<<endl;
cout<<"★ || 2.号码查询 || ★"<<endl;
cout<<"★ || 3.号码修改 || ★"<<endl;
cout<<"★ || 4.号码删除 || ★"<<endl;
cout<<"★ || 5.显示所有联系人 || ★"<<endl;
cout<<"★ || 6.退出程序 || ★"<<endl;
cout<<"★ ≡≡≡≡≡≡≡≡≡≡≡ ★"<<endl;
cout<<"〓〓〓〓〓〓〓〓●●●●●●●●●〓〓〓〓〓〓〓〓〓★"<<endl;
cout<<endl<<"请进行选择(1-6): ";
while(true)
{
cin.sync();
cin.clear();
cin>>choice;
if(!(choice==1 || choice==2 || choice==3|| choice==4|| choice==5|| choice==6))
{
cout<<"请输入正确的号码:";
}
else
{
break;
}
}
switch(choice)
cout<<"★ || 1.号码输入 || ★"<<endl;
cout<<"★ || 2.号码查询 || ★"<<endl;
cout<<"★ || 3.号码修改 || ★"<<endl;
cout<<"★ || 4.号码删除 || ★"<<endl;
cout<<"★ || 5.显示所有联系人 || ★"<<endl;
cout<<"★ || 6.退出程序 || ★"<<endl;
cout<<"★ ≡≡≡≡≡≡≡≡≡≡≡ ★"<<endl;
cout<<"〓〓〓〓〓〓〓〓●●●●●●●●●〓〓〓〓〓〓〓〓〓★"<<endl;
cout<<endl<<"请进行选择(1-6): ";
while(true)
{
cin.sync();
cin.clear();
cin>>choice;
if(!(choice==1 || choice==2 || choice==3|| choice==4|| choice==5|| choice==6))
{
cout<<"请输入正确的号码:";
}
else
{
break;
}
}
switch(choice)
剩余7页未读,继续阅读
资源评论
zhang1989622
- 粉丝: 0
- 资源: 1
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功