Errors in VC ++, please advise, thank you!

zhaozj2021-02-16  78

This is the example I have seen in other websites, # include #include #include

Void Guitu (void);

Main () {srand (Time (NULL)); Guitu (); Return 0;}

Void Guitu () {INT I, J, Count = 0, Coun = 0, Number; Char PrintFun [71];

While (1) {for (j = 0; j <70; j ) printfun [j] = ''; PrintFun [71] = '';

Number = rand ()% 10 1; Printf ("n");

IF (1 <= Number && Number <= 5) {count = count 3; if (count> 70) count = 0; printfun [count] = 'g';}

IF (6 <= Number && Number <= 7) {count = count-6; if (count <0) count = 0; printfun [count] = 'g';}

IF (8 <= Number && Number <= 10) {count = count 1; if (count> 70) count = 0; printfun [count] = 'g';}

IF (1 <= Number && Number <= 2) {cou = cou 0; printfun [cou] = 't';}

IF (3 <= Number && Number <= 4) {cou = cou 9; if (cou> 70) cou = 0; printfun [cou] = 't';}

IF (Number == 5) {cou = cou-12; if (cou <0) cou = 0; printfun [cou] = 't';}

IF (6 <= Number && Number <= 8) {cou = cou 1; if (cou> 70) cou = 0; printfun [cou] = 't';}

IF (9 <= Number && Number <= 10) {cou = cou-2; if (cou <0) cou = 0; printfun [cou] = 't';}

IF (count == count) printfun [count] = 'p';

Printf ("% s", printfun; printf ("nn");

IF (count == 70) {Printf ("GUI WIN !!! NN"); Break;} if (cou == 70) {Printf ("tu win !!! nn"); break;} Sleep (1) }}

This is an example of C, and there is a mistake in VC as follows:

Fatal Error C1010: UNEXPECTED End of File While DirectiveError EXECUTING CL.EXE. What is wrong, please point, thank you!

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

New Post(0)