Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * File: main.cpp
- * Author: Rosas Annhtony
- *Purpose:PvP Tic-Tac Toe
- * Created on April 18, 2015, 8:16 PM
- */
- //system Libraries
- #include <cstdlib>//Random rand() ,sand
- #include <iostream>//Keyboard/Monitor
- #include <fstream>//File I/O
- #include <ctime>//time fuctions
- #include <cmath>// math function library
- #include <iomanip>//format lib
- using namespace std;
- //user Libraries
- //global constants
- //function prototypes
- //execution begins here
- int main(int argc, char** argv) {
- //Declare Variables
- bool a;
- float b;
- int c;
- char choice, y,n;
- //Prompt user for input
- do
- {
- cout<<"Would you like to play a game of Tic Tac Toe?"<<endl;
- cout<<"Please enter \"yes\" or \"no\"."<<endl;
- cin>>choice;
- }while(choice != 'yes' && choice != 'no');
- if(choice == 'yes'){
- cout<<"Would you like to play a single game? Or best two out of three"<<endl;
- }else{
- cout<<"Goodbye"<<endl;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement