samedi 6 avril 2019

no "object" file generated in srand(time(0));

I wanna create a random number from 1 to 100 but the compiler cannot run my program and informed the C2220 error

EXERCISE NAME: Guess My Number Write a program which gives the user seven turns to guess a secret number.

I tried this type of exercise last week and my Visual Studio 2017 still work but now it doesn't

stdio.h time.h stdlib. h

int main (void) { srand(time(0)); // error from here ...




Aucun commentaire:

Enregistrer un commentaire