if (flag) {
cout <<\对不起!!!联系人中没你找的人!!!!\ }
getch(); }
void book::save_new() {
ofstream outData(\ if (!outData) {
cout <<\对不起!!!打开文件失败!!!!\ system(\ return; }
outData << setiosflags(ios::left) << setw(17) << name<<\number <<\
<< setw(15) << qq <<\< outData.close(); } int main() { int choose; book abj; while (choose = abj.inter_face()) { switch (choose) { case 1: abj.add_person(); break; case 2: abj.del_person(); break; case 3: abj.show_all(); break; case 4: abj.alter(); break; case 5: abj.select(); break; case 6: cout <<\谢谢使用!!!!!\ exit(0); break; default: break; } } return 0; }