#include<stdio.h>
#include<stdlib.h>
#include<time.h>
void introduction(){
printf("猜价格游戏,。。。。。\n");
}
int startgame(){
int price,player;
int i;
time_t t;
srand((unsigned)time(&t));
price=rand()%101+100;
printf("%d\n",price);
for(i=0;i<6;i++){
printf("请输入价格:");
scanf("%d",&player);
if(player>price)
printf("高\n");
else if(player<price)
printf("低\n");
else{
printf("恭喜你!猜对了!\n");
return i;
break;
}
}
printf("很遗憾!没有猜对!\n");
return -1;
}
double winingper(int winnum,int total){
double per,prinper;
if(total==0){
printf("你还没有进行游戏!\n");
return -1;