标签:lse printf unsigned guess turn ESS lib The sig
# include "stdio.h"
# include "stdlib.h"
# include <time.h>
int main(int argc,char*argv[])
{
int i;
char c,gu;
srand((unsigned)time(NULL));
c=6;
gu=rand()%6+1;
for(i=1;i<=100;i++)
{
c=rand()%31+1;
if(c>7&&c<13)
c=17;
if(i%9==0)
printf("%d.%c\t",i,gu) ;
else
printf("%d.%c\t",i,c) ;
if(i%5==0)
printf("\n");
}
getchar();
printf("the icon you guess is:\n");
for(i=1;i<10;i++)
printf("%c ",gu);
printf("\n");
return 0;
}
标签:lse printf unsigned guess turn ESS lib The sig
原文地址:https://www.cnblogs.com/P201821440041/p/10591084.html