Advertisement
Guest User

asdasdasdasdasdasdasd

a guest
Apr 18th, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. /*
  2. * File: main.cpp
  3. * Author: Rosas Annhtony
  4. *Purpose:PvP Tic-Tac Toe
  5. * Created on April 18, 2015, 8:16 PM
  6. */
  7.  
  8. //system Libraries
  9. #include <cstdlib>//Random rand() ,sand
  10. #include <iostream>//Keyboard/Monitor
  11. #include <fstream>//File I/O
  12. #include <ctime>//time fuctions
  13. #include <cmath>// math function library
  14. #include <iomanip>//format lib
  15. using namespace std;
  16. //user Libraries
  17. //global constants
  18. //function prototypes
  19. //execution begins here
  20. int main(int argc, char** argv) {
  21. //Declare Variables
  22. bool a;
  23. float b;
  24. int c;
  25. char choice, y,n;
  26.  
  27. //Prompt user for input
  28. do
  29. {
  30. cout<<"Would you like to play a game of Tic Tac Toe?"<<endl;
  31. cout<<"Please enter \"yes\" or \"no\"."<<endl;
  32. cin>>choice;
  33.  
  34. }while(choice != 'yes' && choice != 'no');
  35.  
  36. if(choice == 'yes'){
  37. cout<<"Would you like to play a single game? Or best two out of three"<<endl;
  38. }else{
  39. cout<<"Goodbye"<<endl;
  40. }
  41.  
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement