怎么用C++设计班级通讯录?

来源:百度知道 编辑:UC知道 时间:2024/05/27 04:40:52
我是新菜鸟!

#include<conio.h>
#include<windows.h>
#include<fstream>
#include<iostream>
#include<string>
#include<string.h>
#include<iomanip>
using namespace std;
struct NUM//电话本结构体
{
string hom;
string off;
string tel;
};
struct BOOK//定义结构体类型BOOK
{
string name;
NUM nums[10];
string addr;
}book[10];

void chose();
void Alter();
void DEL();
void Quit();
static i=0;

void menu()//菜单函数
{
system("CLS");
cout <<endl;
cout<<"\t\t★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★☆★" <<endl
<<"\t\t☆ ☆" <<endl
<<"\t\t★ Record openly and fast ★" <<endl
<<"\t\t☆