学霸辉窥屏代码2
#include "stdafx.h"
#include "stdlib.h"
#include "stdio.h"
#include "time.h"
#include "stdlib.h"
#include "stdio.h"
#include "time.h"
int main(int argc, char* argv[])
{
int i;
char c,gu;
srand((unsigned)time(NULL));
{
int i;
char c,gu;
srand((unsigned)time(NULL));
gu=rand()%6+32;
for (i=1;i<=100;i++)
{
c=rand()%31+32;
if(i%9==0)
printf("%d.%c\t",i,gu);
else
printf("%d.%c\t",i,c);
if(i%5==0)
printf("\n");
}
for (i=1;i<=100;i++)
{
c=rand()%31+32;
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;
}
printf("the icon you guess is:\n");
for(i=1;i<=10;i++)
printf("%c",gu);
printf("\n");
return 0;
}