![]() ![]() ![]() ![]() Snake *q // The pointer used to traverse the snake Snake *head, *food // Snake head pointer, food pointer Int status, sleeptime = 200 // The time interval for each run Int score = 0, add = 10 // Total score and food score per meal. Typedef struct SNAKE // The snake 1 A node #define R 4 // The state of the snake, U On: D : under L: On the left R Right: The program can be compiled and run under VS2013. Read and learn the source code, and made simple comments and modifications, which only used linked list data structure, very suitable for beginners of C language learning to read. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |