- #include<iostream>
- using namespace std;
- int main()
- {
- int vote, password;
- int a, b, c, d;
- cout<<"秘密投票機--總統選舉"<<endl;
- cout<<"1.如花 2.劉子千 3.王六蛋"<<endl;
- cout<<"請投票:"<<endl;
- cin>>vote;
- if(vote==1)
- {
- a++;
- }else if(vote==2)
- {
- b++;
- }else if(vote==3)
- {
- c++;
- }else
- {
- d++;
- }
- system("cls");
- cout<<"謝謝~~請等候管理員處理~~"<<endl;
- cout<<"密碼:"<<endl;
- cin>>password;
- if(password==123)
- {
- cout<<""<<endl;
-
- }
-
-
- system("pause");
- return 0;
- }
複製代碼 |