// MainNewMenu.cpp: implementation of the MainNewMenu class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "MainNewMenu.h" MainNewMenu::doMainStrategy() { system("cls"); cout<>t_info.name; cout<<"Address:"; cin.clear(); cin.sync(); cin>>t_info.addr; cout<<"*Tel:"; cin.clear(); cin.sync(); cin>>t_info.tel; char t_c; cout<<"\n\tthe following data can be set as NULL.Press ENTER to skip\n\n"; cin.clear(); cin.sync(); cout<<"Gender:(M for Male, F for Female)"; char _c= getchar(); if (_c != '\n') t_info.sex = _c; cin.clear(); cin.sync(); cout<<"Zip:"; while((t_c = getchar()) != '\n'){ t_str += t_c; } strcpy(t_info.zip,t_str.c_str()); cin.clear(); cin.sync(); t_str = ""; cout<<"Mailbox:"; while((t_c = getchar()) != '\n'){ t_str += t_c; } strcpy(t_info.mail,t_str.c_str()); cin.clear(); cin.sync(); t_str = ""; cout<<"*QQ:"; while((t_c = getchar()) != '\n'){ t_str += t_c; } strcpy(t_info.qq, t_str.c_str()); cin.clear(); cin.sync(); t_str = ""; cout<<"Category:"; while((t_c = getchar()) != '\n'){ t_str += t_c; } strcpy(t_info.category,t_str.c_str()); cin.clear(); cin.sync(); t_str = ""; if(!check(t_info, true) ){ cout<<"\n\t\t"<