fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. struct Person{
  5. string m_name;
  6. int m_age;
  7. int m_sex;
  8. string m_phone;
  9. string m_address;
  10. };
  11. struct Addressbooks{
  12. Person personarr[1000];
  13. int S_size;
  14. };
  15. //显示菜单
  16. void showMenu(){
  17. cout<<"**************"<<endl;
  18. cout<<"*1.添加用户****\n";
  19. cout<<"*2.显示用户****\n";
  20. cout<<"*3.删除用户****\n";
  21. cout<<"*4.查找指定用户*\n";
  22. cout<<"*5.删除指定用户*\n";
  23. cout<<"*6.清空用户****\n";
  24. cout<<"*0.退出系统****\n";
  25. cout<<"**************"<<endl;
  26.  
  27. }
  28.  
  29. int main() {
  30. // your code goes here
  31. showMenu();
  32. return 0;
  33. }
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
**************
*1.添加用户****
*2.显示用户****
*3.删除用户****
*4.查找指定用户*
*5.删除指定用户*
*6.清空用户****
*0.退出系统****
**************