samedi 10 avril 2021

i could not solve this [Error] 'rand' was not declared in this scope in dev c++

void Setup() {
    gameover = false;
    dir = STOP;

    x = width / 2;
    y = height / 2;

    fruitX = rand() % width; //display fruit in a random place
    fruitY = rand() % height; score = 0;
}



Aucun commentaire:

Enregistrer un commentaire