tambien soy nuevo en el foro y esto es lo que yevo
Código
eso es lo que yevo y si siguo asi me saldra muy largo asi que por eso pido su ayuda
#include<iostream.h> #include<conio.h> void main() { clrscr(); int g; char r[100]; clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 | | "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | | "<<endl; cout<<" | | | | "<<endl; cin>>r[0]; if(r[0]=='1' || r[0]=='2' || r[0]=='3' || r[0]=='4' || r[0]=='5' || r[0]=='6' || r[0]=='7' || r[0]=='8' || r[0]==9) {//ciclo del gato if(r[0]=='1') {//if del 1-1 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | | "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | | O "<<endl; cout<<" | | | | "<<endl; cin>>r[1]; if(r[1]=='2') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | X | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | | O"<<endl; cout<<" | | | | "<<endl; cin>>r[2]; if(r[2]=='4') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | X | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | | O "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | | O "<<endl; cout<<" | | | | "<<endl; cout<<"gane ^^ "<<endl; } if(r[2]=='5') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | X | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | X | O "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | | O "<<endl; cout<<" | | | | "<<endl; cout<<"gane "<<endl; } if(r[2]=='7') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | X | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | O"<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 X | | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; } if(r[2]=='8') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | X | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | O "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | X | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; } if(r[2]=='6') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | X | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | | O "<<endl; cout<<" | | | | "<<endl; cin>>r[3]; if(r[3]=='5') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | X | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | X | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | O | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; } if(r[3]=='8') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | X | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | O | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | X | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; } if(r[3]=='4') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | X | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | O | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; } } } if(r[1]=='3') {//if del 1-3 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | | O "<<endl; cout<<" | | | | "<<endl; cin>>r[2]; if(r[2]=='8') {//if del 1-3-7 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | O | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | X | O "<<endl; cout<<" | | | | "<<endl; cin>>r[3]; if(r[3]=='4') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | O | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | X | O "<<endl; cout<<" | | | | "<<endl; cout<<" empate "<<endl; } if(r[3]=='7') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 O | O | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 X | X | O "<<endl; cout<<" | | | | "<<endl; cout<<" empate "<<endl; if(r[4]=='4') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | O | O "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 X | X | O "<<endl; cout<<" | | | | "<<endl; } } if(r[3]=='6') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 O | O | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | X | O "<<endl; cout<<" | | | | "<<endl; cout<<" empate "<<endl; } if(r[4]=='7') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | O | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 X | O | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; if(r[4]=='4') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | O | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | O | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; if(r[4]=='8') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 O | O | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | X | O "<<endl; cout<<" | | | | "<<endl; cout<<" empate "<<endl; } } } } if(r[2]=='6') {//if del 1-3-7 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | | O "<<endl; cout<<" | | | | "<<endl; cin>>r[3]; if(r[3]=='5') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | X | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | O | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; } if(r[3]=='4') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | O | O "<<endl; cout<<" | | | | "<<endl; cout<<" Gane "<<endl; } if(r[3]=='8') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | O | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | X | O "<<endl; cout<<" | | | | "<<endl; cout<<" empate "<<endl; } } if(r[2]=='7') {//if del 1-3-7 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | O | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 X | | O "<<endl; cout<<" | | | | "<<endl; cin>>r[3]; if(r[3]=='4') {//1-3-7-4 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | O | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 X | | O "<<endl; cout<<" | | | | "<<endl; cout<<"Felicidades ganaste "<<endl; }//1-3-7-4 if(r[3]=='8') {//1-3-7-8 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 O | O | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 X | X | O "<<endl; cout<<" | | | | "<<endl; cout<<"empate "<<endl; }//1-3-7-8 if(r[3]=='6') {//1-3-7-6 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 O | O | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 X | | O "<<endl; cout<<" | | | | "<<endl; cout<<"empate "<<endl; }//1-3-7-6 }//if del 1-3-7 if(r[2]=='4') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | | O "<<endl; cout<<" | | | | "<<endl; cin>>r[4]; if(r[4]=='5') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | X | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | O | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; } if(r[4]=='8') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | O | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | X | O "<<endl; cout<<" | | | | "<<endl; cout<<" empate "<<endl; } if(r[4]=='6') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | O | O "<<endl; cout<<" | | | | "<<endl; cout<<"gane "<<endl; } }//if 1-3-4 if(r[2]=='5') {//if del 1-3-7 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | X | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | | O "<<endl; cout<<" | | | | "<<endl; cin>>r[4]; if(r[4]=='6') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | X | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | O | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; } if(r[4]=='4') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | X | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | O | O "<<endl; cout<<" | | | | "<<endl; cout<<" gane "<<endl; } if(r[4]=='8') { clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | O | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | X | O "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | X | O "<<endl; cout<<" | | | | "<<endl; cout<<" empate "<<endl; } } }//if del 1-3 if(r[1]=='4') {//if del 1-4 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 X | | "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | | O "<<endl; cout<<" | | | | "<<endl; cin>>r[1]; }//if del 1-4 } //if del 1-1 if(r[0]=='2') { //if del 2-1 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 | X | "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | | "<<endl; cout<<" | | | | "<<endl; } //if del 2-1 if(r[0]=='3') {//if del 3-1 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 | | X "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | | O "<<endl; cout<<" | | | | "<<endl; } //if del 3-1 if(r[0]=='4') {//if del 4-1 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 | | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 X | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | | "<<endl; cout<<" | | | | "<<endl; }//if del 4-1 if(r[0]=='5') {//if del 5-1 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 | | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | X | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | | "<<endl; cout<<" | | | | "<<endl; }//if del 5-1 if(r[0]=='6') {//if del 6-1 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 | | "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | X "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 O | | "<<endl; cout<<" | | | | "<<endl; }//if del 6-1 if(r[0]=='7') {//if del 7-1 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 | | O "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 X | | "<<endl; cout<<" | | | | "<<endl; }//if del 7-1 if(r[0]=='8') {//if del 8-1 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 O | | "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | X | "<<endl; cout<<" | | | | "<<endl; }//if del 8-1 if (r[0]=='9') {//if del 9-1 clrscr();cout<<" teclas juego "<<endl;cout<<" "<<endl; cout<<" | | | | "<<endl; cout<<" 1 | 2 | 3 O | | "<<endl; cout<<"___|___|___ ___|___|___"<<endl; cout<<" | | | | "<<endl; cout<<" 4 | 5 | 6 | | "<<endl; cout<<"___|___|___ ___|___|___ "<<endl; cout<<" | | | | "<<endl; cout<<" 7 | 8 | 9 | | X "<<endl; cout<<" | | | | "<<endl; }//if del 9-1 }//ciclo del gato else { cout<<"porfavor vuelva a iniciar "<<endl; } }