Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- int z = 0;
- do {
- int quit;
- int secondchoice;
- cout<<"| MENU' STATISTICHE |"<<endl
- <<"1/ Statistica numero utenti totali"<<endl
- <<"2/ Statistica numero persone totali"<<endl
- <<"3/ Statistica numero compagnie totali"<<endl
- <<"4/ Statistica numero gruppi totali"<<endl
- <<"5/ Statistica numero amici e parenti per ogni utente"<<endl
- <<"6/ Statistica numero utenti nati dopo una certa data"<<endl
- <<"7/ Statistica numero dipendenti e consociate per ogni azienda"<<endl
- <<"8/ Statistica numero utenti per ogni gruppo"<<endl
- <<"9/ Statistica azienda con il maggiore numero di dipendenti"<<endl
- <<"10/ Statistica notizia con il maggior numero di apprezzanmenti"<<endl
- <<"11/ Statistica notizia con il maggior numero di indignazioni"<<endl
- <<"12/ Statistica utente con il maggior numero di amici"<<endl
- <<"13/ Statistica utente con il maggior numero di conoscenze"<<endl
- <<"14/ Statistica Età media delle persone"<<endl
- <<"15/ Torna indietro";
- cin>>secondchoice;
- switch (secondchoice) {
- case 1:
- (*user_db).statisticNTotalUser();
- break;
- case 2:
- (*user_db).statisticNTotalPerson();
- break;
- case 3:
- (*user_db).statisticNTotalCompany();
- break;
- case 4:
- (*user_db).statisticNTotalGroup();
- break;
- case 5:
- quit = 0;
- while (!quit) {
- int choice;
- cout << "Please choose one of the following options : " << endl
- << "[1] Statistica numero amici per ogni utente" << endl
- << "[2] Statistica numero parenti per ogni utente" << endl
- << "[3] Torna indietro";
- cin >> choice;
- switch (choice) {
- case 1:
- (*user_db).statisticNFriend_User();
- break;
- case 2:
- (*user_db).statisticNParents_User();
- break;
- case 4:
- quit = 1;
- break;
- default:
- cerr << "Option " << choice << " not valid" << endl;
- }
- break;
- }
- case 6:
- (*user_db).statisticNUserAfterSelectedData();
- break;
- case 7:
- quit = 0;
- while (!quit) {
- int choice;
- cout << "Please choose one of the following options : " << endl
- << "[1] Statistica numero dipendenti per ogni azienda" << endl
- << "[2] Statistica numero consociate per ogni azienda" << endl
- << "[3] Torna indietro";
- cin >> choice;
- switch (choice) {
- case 1:
- (*user_db).statisticNEmployee_Company();
- break;
- case 2:
- (*user_db).statisticNConsociate_Company();
- break;
- case 4:
- quit = 1;
- break;
- default:
- cerr << "Option " << choice << " not valid" << endl;
- }
- break;
- }
- case 8:
- (*user_db).statisticNUser_Group();
- break;
- case 9:
- (*user_db).statisticCompany_MaxEmployee();
- break;
- case 10:
- (*user_db).statisticMessage_MaxLike();
- break;
- case 11:
- (*user_db).statisticMessage_MaxDislike();
- break;
- case 12:
- (*user_db).statisticUser_MaxFriend();
- break;
- case 13:
- (*user_db).statisticUser_MaxMeet();
- break;
- case 14:
- (*user_db).statisticAverageAge();
- break;
- case 15:
- quit = 1;
- break;
- default:
- cerr << "Option " << secondchoice << " not valid" << endl;
- }
- }
- while ( z == 0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement