• 孟优秀の心理小测试


    #include "stdafx.h"

    #include "stdio.h"

    #include "math.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 ",i,gu);

                  else

                         printf("%d. %c ",i,c);

                  if(i%5==0)

                           printf(" ");

          

           }

           getchar();

           printf("the icon you guess is: ");

           for(i=1;i<=10;i++)

                  printf("%c  ",gu);

        printf(" ");

    return 0;

    }

  • 相关阅读:
    springboot 基础
    spring 基础
    spring MVC 基础
    windows shell
    oracle 创建用户和视图并授权
    maven 安装本地依赖
    JAVA ssl 证书
    mybatis 递归
    MyBatis基础
    当年的毕设-cpf (一个简易的协议 fuzzer)
  • 原文地址:https://www.cnblogs.com/P201821430045/p/10610859.html
Copyright © 2020-2023  润新知