Vajad kellegagi rääkida?
Küsi julgelt abi LasteAbi
Logi sisse
Sulge

"charindex1" - 1 õppematerjal

Battlearene 3-kodutöö
15
docx

Battlearene 3. kodutöö

for(;iinArena(); cout<getType()<<" ""<getName()<<"" entered the arena"<charIndex1=random; random=rand() % characters.size(); Character *op2=characters[random]; int charIndex2=random; while(op2==op1){ random=rand() % characters.size(); op2=characters[random]; charIndex2=random; } cout<<"Fightng:"<getName()<<" vs "<< op2->getName()<isPlayer(); bool isOp2Player=op2->isPlayer(); int actionsLeftP1=op1->getLvl(); int actionsLeftP2=op2->getLvl(); //võitlus surmani

Informaatika → Keel c ja objektorienteeritud...
29 allalaadimist


Sellel veebilehel kasutatakse küpsiseid. Kasutamist jätkates nõustute küpsiste ja veebilehe üldtingimustega Nõustun