danznb

#include <stdio.h>
#include <stdlib.h>
#inlcude <time.h>
int main(){
srand(time(0));
int number=rand()%100+1;
int count=0,a=0;
printf("请开始猜数:");
do{
scanf("%d",&a);
count++;
if(a>number){
printf("大了");
}
else{
printf("小了");
}
}while(a!=number);
printf("你猜对了,共用%d次。\n",count);
}

 

 

[Error] invalid preprocessing directive #inlcude

 

include 拼错了,死活没看出来

分类:

技术点:

相关文章:

  • 2021-11-30
  • 2021-11-30
  • 2021-11-30
  • 2021-12-16
  • 2021-06-03
  • 2022-01-13
  • 2022-12-23
猜你喜欢
  • 2021-11-30
  • 2021-11-30
  • 2021-11-30
  • 2021-08-14
  • 2021-05-24
  • 2021-08-14
  • 2022-12-23
相关资源
相似解决方案