c语言猜数字游戏源代码?
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define MANY 4
#define TIME_OUT 8
int a,b,u ;
void game();
void ab(int answer[],int guess[]);
void same(int num[]);
//主目录
void menu()
{
char choice,ch ;
do
{
do
{
system("cls");
printf("/t/t/t/t简单猜数字/n/n/n/n");
printf("/t/t/t/t1.开始游戏/n/n");
printf("/t/t/t/t2.使用说明/n/n");
printf("/t/t/t/t3.退出/n/n");
printf("/t/t/t请输入(1-3): ");
fflush(stdin);
choice=getchar();
}
while(choice!='1'&&choice!='2'&&choice!='3');
switch(choice)
{
case '1' :
{
game();
break ;

