Código de programación C++ Gypsy Divination, ¡un juego de adivinación!
#?¿Incluir? & ltcstdlib & gt
#?¿Incluir? & ltctime & gt
#?¿Incluir? & ltiomanip & gt
¿Usar? ¿Espacio de nombres? std
int? main(){
Tiempo(nulo);
int? n=33, d=1, e=0;
¿Carácter? p[101],cadena
int? a[100];
? mientras(verdadero){
? cout <<"* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *"<<"Adivinación mágica"
? cout & lt& lt "Elija un número al azar, no se lo diga, y luego reste la suma de sus decenas y uno. Recuerde descubrir el símbolo detrás del número, no se lo diga." & lt& ltendl
?
for(int?I = 0;i<100;i++){
? a[I]= I+1;
}
? n++,d++;
? for(int?k = 1;k <101;k++){?
? p[k]=(rand()% 14)+33;
if(k%9==0){
? p[k]= n;}
? }
? for(int?j = 0;j & lt100;j++){
? cout & lt& lt" " " & lt& ltsetw(4)& lt;& lta[j]& lt;& lt"?"& lt& ltsetw(2)& lt;& ltp[j+1];
? }
? str = n;
cout & lt& lt" \ n " & lt& lt"Entrada"
CIN & gt;& gtd;
cout & lt& lt "¿Recuerdas ese símbolo?" "& lt& ltstr & lt& lt" "¡Oh!" & lt& ltendl
cout & lt& lt "¡Qué increíble! Ingresa 1 nuevamente, ingresa 2: "Si no juegas;
CIN & gt;& gte;
cout & lt& lt" \ n " & lt& lt" \ n " & lt& lt"\ n";
if(e == 1){ continuar;} else { descanso}
? }
?
}