What will I define the "random number generator" error? Please expert guidance!

xiaoxiao2021-03-06  52

#include

#include

#include

#include

#include

Void main (void) {int ANSWER [4], Guess = 0, A = 0, B, TIME = 0, I, J; CLRSCR (); for (i = 0; i <= 3; i ) {randomize ); 就 是 处 出! // Answer [i] = rand ()% 10; for (j = 0; J

9999); for (i = 3; I> -1; I -) {for (j = 0; j <4; j ) {if ((int) (Guess / Pow10 (i)) == Answer [J ]) {IF (i j == 3) a = a 1; ELSE B = B 1;}} guess = guess- (int) (Gues / POW10 (I)) * Pow10 (i);} Window (20, 0, 40, 31); CPRINTF ("/ N / R% DA% DB / N", A, B); getCh ();}} I used the "guess number" compiled Win-TC. There is no mistakes in other places, which is defined "randomize ();" cannot be compiled. Error says "Error: Call Unexpected Function in Main Function" What is this? ? I don't think, how can I say that the call is not defined in main, I use it on the header file "#include

"Oh! Please give pointers, thank you!

转载请注明原文地址:https://www.9cbs.com/read-40691.html

New Post(0)