Submit Search
Upload
Rabia
•
Download as DOCX, PDF
•
0 likes
•
39 views
U
university of Gujrat, pakistan
Follow
Tiktaktok Game code | code in c++
Read less
Read more
Software
Report
Share
Report
Share
1 of 5
Download now
Recommended
Tic tac toe
Tic tac toe
jo pakson
Project hotel on hotel management fo
Project hotel on hotel management fo
Sunny Singhania
מודלים חישוביים - תרגול מס 2 - אוניברסיטת חיפה
מודלים חישוביים - תרגול מס 2 - אוניברסיטת חיפה
Igor Kleiner
Vcs28
Vcs28
Malikireddy Bramhananda Reddy
Basics
Basics
Logan Campbell
NUMOSS 4th Week - Commandline Tutorial
NUMOSS 4th Week - Commandline Tutorial
Gagah Arifianto
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
SmartTools
Shell and perl scripting classes in mumbai
Shell and perl scripting classes in mumbai
Vibrant Technologies & Computers
Recommended
Tic tac toe
Tic tac toe
jo pakson
Project hotel on hotel management fo
Project hotel on hotel management fo
Sunny Singhania
מודלים חישוביים - תרגול מס 2 - אוניברסיטת חיפה
מודלים חישוביים - תרגול מס 2 - אוניברסיטת חיפה
Igor Kleiner
Vcs28
Vcs28
Malikireddy Bramhananda Reddy
Basics
Basics
Logan Campbell
NUMOSS 4th Week - Commandline Tutorial
NUMOSS 4th Week - Commandline Tutorial
Gagah Arifianto
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
Стажировка 2016-07-27 02 Денис Нелюбин. PostgreSQL и jsonb
SmartTools
Shell and perl scripting classes in mumbai
Shell and perl scripting classes in mumbai
Vibrant Technologies & Computers
strace for Perl Mongers
strace for Perl Mongers
Naosuke Yokoe
Using browser() in R
Using browser() in R
Leon Kim
Clojure入門
Clojure入門
Naoyuki Kakuda
Elixir @ Paris.rb
Elixir @ Paris.rb
Gregoire Lejeune
project3
project3
Russell Rawls
Python and rust 2018 pythonkorea jihun
Python and rust 2018 pythonkorea jihun
JIHUN KIM
Lalal
Lalal
Jessica Roca
Php&redis presentation
Php&redis presentation
Antonio De Patto
RG講義_SSH
RG講義_SSH
Shuya Osaki
TCP/IP Exercises
TCP/IP Exercises
Felipe Suarez
Hello c
Hello c
Ashish Ranjan
clonehd01
clonehd01
Luiz Francisco Bozo
Simple php backdoor_by_dk
Simple php backdoor_by_dk
Stan Adrian
C code
C code
UET Taxila
Programação completa e perfeira
Programação completa e perfeira
Magno Rodrigues
자바스터디 4
자바스터디 4
jangpd007
Automated tests - facts and myths
Automated tests - facts and myths
Wojciech Sznapka
An (abridged) Ruby Plumber's Guide to *nix
An (abridged) Ruby Plumber's Guide to *nix
Eleanor McHugh
Client-side Storage 
Client-side Storage 
Tobias Wolf
Combine vs RxSwift
Combine vs RxSwift
shark-sea
Hospital management
Hospital management
Naman Maheshwari
Hospital management
Hospital management
Naman Maheshwari
More Related Content
What's hot
strace for Perl Mongers
strace for Perl Mongers
Naosuke Yokoe
Using browser() in R
Using browser() in R
Leon Kim
Clojure入門
Clojure入門
Naoyuki Kakuda
Elixir @ Paris.rb
Elixir @ Paris.rb
Gregoire Lejeune
project3
project3
Russell Rawls
Python and rust 2018 pythonkorea jihun
Python and rust 2018 pythonkorea jihun
JIHUN KIM
Lalal
Lalal
Jessica Roca
Php&redis presentation
Php&redis presentation
Antonio De Patto
RG講義_SSH
RG講義_SSH
Shuya Osaki
TCP/IP Exercises
TCP/IP Exercises
Felipe Suarez
Hello c
Hello c
Ashish Ranjan
clonehd01
clonehd01
Luiz Francisco Bozo
Simple php backdoor_by_dk
Simple php backdoor_by_dk
Stan Adrian
C code
C code
UET Taxila
Programação completa e perfeira
Programação completa e perfeira
Magno Rodrigues
자바스터디 4
자바스터디 4
jangpd007
Automated tests - facts and myths
Automated tests - facts and myths
Wojciech Sznapka
An (abridged) Ruby Plumber's Guide to *nix
An (abridged) Ruby Plumber's Guide to *nix
Eleanor McHugh
Client-side Storage 
Client-side Storage 
Tobias Wolf
Combine vs RxSwift
Combine vs RxSwift
shark-sea
What's hot
(20)
strace for Perl Mongers
strace for Perl Mongers
Using browser() in R
Using browser() in R
Clojure入門
Clojure入門
Elixir @ Paris.rb
Elixir @ Paris.rb
project3
project3
Python and rust 2018 pythonkorea jihun
Python and rust 2018 pythonkorea jihun
Lalal
Lalal
Php&redis presentation
Php&redis presentation
RG講義_SSH
RG講義_SSH
TCP/IP Exercises
TCP/IP Exercises
Hello c
Hello c
clonehd01
clonehd01
Simple php backdoor_by_dk
Simple php backdoor_by_dk
C code
C code
Programação completa e perfeira
Programação completa e perfeira
자바스터디 4
자바스터디 4
Automated tests - facts and myths
Automated tests - facts and myths
An (abridged) Ruby Plumber's Guide to *nix
An (abridged) Ruby Plumber's Guide to *nix
Client-side Storage 
Client-side Storage 
Combine vs RxSwift
Combine vs RxSwift
Similar to Rabia
Hospital management
Hospital management
Naman Maheshwari
Hospital management
Hospital management
Naman Maheshwari
Programa Sumar y Multiplicar
Programa Sumar y Multiplicar
Anais Rodriguez
Project in programming
Project in programming
sahashi11342091
Codes on structures
Codes on structures
Shakila Mahjabin
New
New
Bilal Muhammad
Add an interactive command line to your C++ application
Add an interactive command line to your C++ application
Daniele Pallastrelli
2 BytesC++ course_2014_c3_ function basics¶meters and overloading
2 BytesC++ course_2014_c3_ function basics¶meters and overloading
kinan keshkeh
Laporan Praktikum 1 dev c++
Laporan Praktikum 1 dev c++
phoe3
c++ project on restaurant billing
c++ project on restaurant billing
Swakriti Rathore
ch9_additional.ppt
ch9_additional.ppt
LokeshK66
C programs
C programs
Azaj Khan
pa-pe-pi-po-pure Python Text Processing
pa-pe-pi-po-pure Python Text Processing
Rodrigo Senra
RAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAM
Krishna Raj
Степан Кольцов — Rust — лучше, чем C++
Степан Кольцов — Rust — лучше, чем C++
Yandex
Bank management system project in c++ with graphics
Bank management system project in c++ with graphics
Vtech Academy of Computers
201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up
恵寿 東
Code em Poker
Code em Poker
Ankit Gupta
AI For Texam Hold'em poker
AI For Texam Hold'em poker
मलय केशव
Start with the inclusion of libraries#include iostream .docx
Start with the inclusion of libraries#include iostream .docx
MARRY7
Similar to Rabia
(20)
Hospital management
Hospital management
Hospital management
Hospital management
Programa Sumar y Multiplicar
Programa Sumar y Multiplicar
Project in programming
Project in programming
Codes on structures
Codes on structures
New
New
Add an interactive command line to your C++ application
Add an interactive command line to your C++ application
2 BytesC++ course_2014_c3_ function basics¶meters and overloading
2 BytesC++ course_2014_c3_ function basics¶meters and overloading
Laporan Praktikum 1 dev c++
Laporan Praktikum 1 dev c++
c++ project on restaurant billing
c++ project on restaurant billing
ch9_additional.ppt
ch9_additional.ppt
C programs
C programs
pa-pe-pi-po-pure Python Text Processing
pa-pe-pi-po-pure Python Text Processing
RAILWAY RESERWATION PROJECT PROGRAM
RAILWAY RESERWATION PROJECT PROGRAM
Степан Кольцов — Rust — лучше, чем C++
Степан Кольцов — Rust — лучше, чем C++
Bank management system project in c++ with graphics
Bank management system project in c++ with graphics
201412 seccon2014 オンライン予選(英語) write-up
201412 seccon2014 オンライン予選(英語) write-up
Code em Poker
Code em Poker
AI For Texam Hold'em poker
AI For Texam Hold'em poker
Start with the inclusion of libraries#include iostream .docx
Start with the inclusion of libraries#include iostream .docx
More from university of Gujrat, pakistan
Change management
Change management
university of Gujrat, pakistan
Latest Trends in Digital Marketing
Latest Trends in Digital Marketing
university of Gujrat, pakistan
Dark web (2)
Dark web (2)
university of Gujrat, pakistan
Code of ethics and professional conduct (1)
Code of ethics and professional conduct (1)
university of Gujrat, pakistan
Certification accreditation and licensure (1)
Certification accreditation and licensure (1)
university of Gujrat, pakistan
biggest technology trends
biggest technology trends
university of Gujrat, pakistan
Freedom of information (1)
Freedom of information (1)
university of Gujrat, pakistan
Individual cognition ppt (1)
Individual cognition ppt (1)
university of Gujrat, pakistan
Top 10 highest (1)
Top 10 highest (1)
university of Gujrat, pakistan
creativity and imagination
creativity and imagination
university of Gujrat, pakistan
Brainstorming 078 (1)
Brainstorming 078 (1)
university of Gujrat, pakistan
speeh-artificial intelligemce
speeh-artificial intelligemce
university of Gujrat, pakistan
Pp dealing with problem complexity (1)
Pp dealing with problem complexity (1)
university of Gujrat, pakistan
Motivation
Motivation
university of Gujrat, pakistan
Vision of artificial intelligence (1)
Vision of artificial intelligence (1)
university of Gujrat, pakistan
Entrepreneurship (1)
Entrepreneurship (1)
university of Gujrat, pakistan
Role of professional societies
Role of professional societies
university of Gujrat, pakistan
Dealing with culticultural environment (1)
Dealing with culticultural environment (1)
university of Gujrat, pakistan
Dealing with problem complexity (1)
Dealing with problem complexity (1)
university of Gujrat, pakistan
cyber security and cyber crime
cyber security and cyber crime
university of Gujrat, pakistan
More from university of Gujrat, pakistan
(20)
Change management
Change management
Latest Trends in Digital Marketing
Latest Trends in Digital Marketing
Dark web (2)
Dark web (2)
Code of ethics and professional conduct (1)
Code of ethics and professional conduct (1)
Certification accreditation and licensure (1)
Certification accreditation and licensure (1)
biggest technology trends
biggest technology trends
Freedom of information (1)
Freedom of information (1)
Individual cognition ppt (1)
Individual cognition ppt (1)
Top 10 highest (1)
Top 10 highest (1)
creativity and imagination
creativity and imagination
Brainstorming 078 (1)
Brainstorming 078 (1)
speeh-artificial intelligemce
speeh-artificial intelligemce
Pp dealing with problem complexity (1)
Pp dealing with problem complexity (1)
Motivation
Motivation
Vision of artificial intelligence (1)
Vision of artificial intelligence (1)
Entrepreneurship (1)
Entrepreneurship (1)
Role of professional societies
Role of professional societies
Dealing with culticultural environment (1)
Dealing with culticultural environment (1)
Dealing with problem complexity (1)
Dealing with problem complexity (1)
cyber security and cyber crime
cyber security and cyber crime
Recently uploaded
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
Wave PLM
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Christina Lin
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
Fatema Valibhai
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
stazi3110
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
kalichargn70th171
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
shikhaohhpro
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
AxelRicardoTrocheRiq
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
MyIntelliSource, Inc.
What is Binary Language? Computer Number Systems
What is Binary Language? Computer Number Systems
JheuzeDellosa
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
kotipi9215
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
gurkirankumar98700
Professional Resume Template for Software Developers
Professional Resume Template for Software Developers
Vinodh Ram
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
joe51371421
DNT_Corporate presentation know about us
DNT_Corporate presentation know about us
Dynamic Netsoft
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
Mehedi Hasan Shohan
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
bodapatigopi8531
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Delhi Whatsup 9873940964 Enjoy Unlimited Pleasure
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
Frank van der Linden
Asset Management Software - Infographic
Asset Management Software - Infographic
Hr365.us smith
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
Christina Lin
Recently uploaded
(20)
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
Building Real-Time Data Pipelines: Stream & Batch Processing workshop Slide
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
Building a General PDE Solving Framework with Symbolic-Numeric Scientific Mac...
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
The Essentials of Digital Experience Monitoring_ A Comprehensive Guide.pdf
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
What is Binary Language? Computer Number Systems
What is Binary Language? Computer Number Systems
chapter--4-software-project-planning.ppt
chapter--4-software-project-planning.ppt
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽❤️🧑🏻 89...
Professional Resume Template for Software Developers
Professional Resume Template for Software Developers
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
DNT_Corporate presentation know about us
DNT_Corporate presentation know about us
XpertSolvers: Your Partner in Building Innovative Software Solutions
XpertSolvers: Your Partner in Building Innovative Software Solutions
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Engage Usergroup 2024 - The Good The Bad_The Ugly
Engage Usergroup 2024 - The Good The Bad_The Ugly
Asset Management Software - Infographic
Asset Management Software - Infographic
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
ODSC - Batch to Stream workshop - integration of Apache Spark, Cassandra, Pos...
Rabia
1.
#include<iostream> usingnamespace std; char turn='X'; bool
d=f; classtictacgame { public: char a[3][3]={{'1','2','3'},{'4','5','6'},{'7','8','9'}}; intch, ro , co; intinterface() { system("cls"); cout<<"n nnt t t "<<"Welcome"<<endl; cout<<"n t t t"<<"TTT(tictac toc) "<<endl; cout<<"t PLAYER 1's X"<<endl<<"tPLAYER2's 0"<<endl; cout<<"t t | | n"; cout<<"t t "<<a[0][0]<<" | "<<a[0][1]<<" | "<<a[0][2]<<" "<<endl; cout<<"t t_____|_____|_____n"; cout<<"t t | | n"; cout<<"t t "<<a[1][0]<<" | "<<a[1][1]<<" | "<<a[1][2]<<" "<<endl; cout<<"t t_____|_____|_____n"; cout<<"t t | | n"; cout<<"t t "<<a[2][0]<<" | "<<b[2][1]<<" | "<<a[2][2]<<" "<<endl; cout<<"t t | | n"; } voidplayer() { if(turn=='X')
2.
cout<<"n t enterplayer1[X]
turn:"; else if(turn=='0') cout<<"n t enterplayer2[0] turn:"; cin>>ch; switch(ch) { case 1: ro=0; co=0; break; case 2: ro=0; co=1; break; case 3: ro=0; co=2; break; case 4: ro=1; co=0; break; case 5: ro=1; co=1; break; case 6: ro=1; co=2;
3.
break; case 7: ro=2; co=0; break; case 8: ro=2; co=1; break; case
9: ro=2; co=2; break; default: cout<<"t InvalidChoice"; } if(turn=='X' && a[ro][co]!='X' && a[ro][co]!='0') { a[ro][co]='X'; turn='0'; } else if(turn=='0' && a[ro][co]!='X' && a[ro][co]!='0') { a[ro][co]='0'; turn='X'; } else {
4.
cout<<"t NOSPACE Try
Again"; player(); } board(); } bool gameover() { //game wins for(inti=0;i<3;i++) if(a[0][0] ==a[0][1] && a[0][0] ==a[0][2] || a[1][0] == a[1][1] && a[1][0] ==a[1][2] || a a[2][0] == a[2][1] && a[2][0] ==a[2][2] || a[0][0] == a[1][1] && a[0][0] ==a[2][2] || a[0][2] == a[1][1] && a[0][2] ==a[2][0]) returnfalse; //empty for(inti=0;i<3; i++) for(intj=0; j<3; j++) if(a[i][j]!='X'&& a[i][j]!='0') returntrue; //draw draw=true; returnfalse; } }; main() { tictacgame g; while(t.gameover())
5.
{ g.board(); g.player(); g.board(); g.gameover(); } if(turn=='X'&& draw== false) { cout<<"Player2[0]
Wins......Congratulations"<<endl; } if(turn=='0' && draw== false) { cout<<"Player1[X] Wins......Congratulations"<<endl; } { cout<<"GAME OVER"; } }
Download now