返回列表 發帖
  1. #include<iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.    int vote, password;
  6.    int a, b, c, d;   
  7.    cout<<"秘密投票機--總統選舉"<<endl;
  8.    cout<<"1.如花 2.劉子千 3.王六蛋"<<endl;
  9.    cout<<"請投票:"<<endl;
  10.    cin>>vote;
  11.    if(vote==1)
  12.    {
  13.     a++;   
  14.    }else if(vote==2)
  15.    {
  16.     b++;     
  17.    }else if(vote==3)
  18.    {
  19.     c++;     
  20.    }else
  21.    {
  22.     d++;   
  23.    }
  24.    system("cls");
  25.    cout<<"謝謝~~請等候管理員處理~~"<<endl;
  26.    cout<<"密碼:"<<endl;
  27.    cin>>password;
  28.    if(password==123)
  29.    {
  30.     cout<<""<<endl;
  31.       
  32.    }
  33.    




  34. system("pause");
  35. return 0;
  36. }
複製代碼

TOP

返回列表