ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Carta Intermedia


Enviado por   •  1 de Febrero de 2013  •  681 Palabras (3 Páginas)  •  1.970 Visitas

Página 1 de 3

#include <iostream>

#include <conio.h>

#include <time.h>

#include <stdlib.h>

using namespace std;

int x,n[13],y,m[13],z,o[13],apostar;

string op;

int main()

{

op = "s";

while (op == "s")

{

cout<<endl;

cout<<" JUEGO DE CARTAS ";

cout<<endl;

cout<<endl;

cout<<endl;

cout<<" CARTA INTERMEDIA";

cout<<"\n";

cout<<endl;

cout<<"\n";

cout<<"\n";

cout<<" PRIMERA CARTA SEGUNDA CARTA";

cout<<"\n";

srand (time(0));

for (x=1; x<=1; x++)

{

n[x]=rand()%13;

}

for (x=1; x<=1; x++)

{

cout<<"\t";cout<<"\t";

cout<<n[x]<<"\t";

cout<<"\t";

cout<<"\t";cout<<"\t";cout<<"\t";

}

for (y=1; y<=1; y++)

{

m[y]=rand()%13;

}

for (y=1; y<=1; y++)

{

cout<<m[y]<<"\t";

cout<<"\t";

}

cout<<endl;

cout <<"\n CUANTO DESEA APOSTAR";

cout<<endl;

cout<<"\t";cout<<"\t";cout<<"\t";cout<<"\t";

cin>>apostar;

cout<<endl;

cout<<"CARTA INTERMEDIA \n";

cout<<"\n";

for (z=1; z<=1; z++)

{

o[z]=rand()%13;

}

for (z=1; z<=1; z++)

{

cout<<o[z]<<"\t";

}

cout<<"DESEA JUGAR DE NUEVO";

cin>>op;

system("cls");

}

getch();

}

...

Descargar como (para miembros actualizados) txt (2 Kb)
Leer 2 páginas más »
Disponible sólo en Clubensayos.com