Advertisement
webmanix

Anonymous

Feb 3rd, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.13 KB | None | 0 0
  1. //Carlos' Trivia Time!
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5. int score = 0;
  6. int main(){
  7.     string in;
  8.     cout << "----------------------------------------\n";
  9.     cout << "------------[Carlos' Trivia]------------\n";
  10.     cout << "Rules: Answer 'y' or 'n' then hit enter.\n";
  11.     cout << "----------------------------------------\n\n\n";
  12.    
  13.     cout << "Are Dolphins The Only Animals Who Can Recognize Themselves In The Mirror?\n\n[y/n]:";
  14.     cin >> in;
  15.     if(in == "y"){
  16.           cout << "Incorrect! Monkeys Can Do It, Too!\n";
  17.     }else{
  18.           score+=50;      
  19.           cout << "Correct! Monkeys Can Do It, Too!\n";
  20.     }
  21.    
  22.     cout << "Did You Know If You Don't Take Risks Then...Well... You Don't Take Any Risks?\n\n[y/n]:";
  23.     cin >> in;
  24.     if(in == "y"){
  25.           score+=50;
  26.           cout << "Correct...I Think? Carlos Does Too Many Drugs..\n";
  27.     }else{      
  28.           cout << "Inorrect...I Think? Carlos Does Too Many Drugs..\n\n";
  29.     }
  30.    
  31.     cout << "\nScore: [" << score << "/100]\n\n";
  32.    
  33.     cout << "Press Any Key To Close";
  34.     system("pause > nul");
  35.     return 0;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement