Fortune Telling Collection - Free divination - C++ programming code gypsy divination, a divination game!

C++ programming code gypsy divination, a divination game!

#? Including? & ltiostream & gt

#? Including? & ltcstdlib & gt

#? Including? & ltctime & gt

#? Including? & ltiomanip & gt

Use? Namespace? std

int? main(){

Time (empty);

int? n=33,d= 1,e = 0;

Charles? p[ 10 1],str

int? a[ 100];

? while(true){

? cout & lt& lt“* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *”& lt; & lt "Magic Divination"

? Cout & lt& lt "Pick a random number, don't tell him, then subtract the sum of its ten digits and one digit, remember to work out the symbol after this number, don't tell him." & lt& ltendl

?

for(int? I = 0; I< 100; i++){

? a[I]= I+ 1;

}

? n++,d++;

? for(int? k = 1; k & lt 10 1; k++){?

? p[k]=(rand()% 14)+33;

if(k%9==0){

? p[k]= n; }

? }

? for(int? j = 0; j & lt 100; j++){

? cout & lt& lt" " " & lt& ltsetw(4)& lt; & lta[j]& lt; & lt"? "& lt& ltsetw(2)& lt; & ltp[j+ 1];

? if(a[j]% 6 = = 0){ cout & lt; & lt" \ n " " \ n}

? }

? str = n;

Cout & lt& lt" \ n "<& lt" Enter "

CIN & gt; & gtd;

Cout & lt& lt "Do you remember that symbol?" "<& ltstr & lt& lt" "Oh!" & lt& ltendl

Cout & lt& lt "How amazing! Then enter 1, and enter 2: "If you don't play;

CIN & gt; & gte;

cout & lt& lt" \ n " & lt& lt" \ n " & lt& lt”\ n”;

if(e = = 1){ continue; } else { break}

? }

?

}