哓拾柒 2021-10-26 23:38 采纳率: 33.3%
浏览 19

请问我应该如何修改?

#include<stdio.h>

#include<stdio.h>

#define I 20

#define R 340

int main()

{
system("mode con cols=80 lines=60 ");

system("title 向你致以最诚挚的祝福!");

char data[200][60] = { {"祝你生日快乐!祝你生日快乐 !"},{"\nHappy birthday to you!\n"},{"Happy birthday my dear friend!\n"},

{"在你面前的台里本,总有一天是很独特!\n"},{"虽然你和我,没办法选,来到世界的某刻。\n"},{"天气寒冷,又或炎热,又或者什么血型和星座!\n"},

{"每年这刻,我对自己说,有生的日子要更快乐!\n"},{"天气寒冷,又或炎热,又或者什么血型和星座!\n"},{"每年这刻,我对自己说,有生的日子要更快乐!\n"},

{"爸爸妈妈辛苦了!谢谢你们为我付出太多!\n"},{"生日祝福,吹灭蜡烛,我要我自己不许哭。 \n"},{"长大了一岁变得靠谱,继续走自己的旅程!\n"},

{"又到这一个时刻,幸福的花火,手机祝福收到很多很多。\n"},{"看到最后一条来自你,写着让我感动的话语。\n"},{"亲爱的朋友要经常联络,我们一起来唱这首歌!\n"},

{"祝你生日快乐额!我们一起快乐!\n"}

};

int sign = 0;

int i, j, e;

int a;

long time;

for (i = 1, a = I; i)



    {
    for (j = (int)(I - sqrt(I * I - (a - i) * (a - i))); j > 0; j--)

    printf(" ");

    for (e = 1; e <= 2 * sqrt(I * I - (a - i) * (a - i)); e++)

    printf("\3");

    for (j = (int)

    (2 * (I - sqrt(I * I - (a - i) * (a - i)))); j > 0; j--)

    printf(" ");

    for (e = 1; e <= 2 * sqrt(I * I - (a - i) * (a - i)); e++)

    printf("\3");

    printf("\n");

    }

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

{
    if (i == 25)

    {
        printf("======祝昕妤,生日快乐。======");

        i += 30;

    }

    printf("\3");

}

printf("\n");

for(i = 1; i <= R / 2; i++)

{
    if (i % 2 || i % 3)

        continue;

    for (j = (int)(R - sqrt(R * R - i * i)); j > 0; j--)

        printf(" ");

    for (e = 1; e <= 2 * (sqrt(R * R - i * i) - (R - 2 * I)); e++)

        printf("\3");

    printf("\n");

}

for (; ; )

{
    system("color a");

    for (time = 0; time < 99999999; time++); system("color b");

    for (time = 0; time < 99999999; time++); system("color c");

    for (time = 0; time < 99999999; time++); system("color d");

    for (time = 0; time < 99999999; time++); system("color e");

    for (time = 0; time < 99999999; time++); system("color f");

    for (time = 0; time < 99999999; time++);

    system("color 0"); for (time = 0; time < 99999999; time++);

    system("color 1"); for (time = 0; time < 99999999; time++);

    system("color 2"); for (time = 0; time < 99999999; time+
  • 写回答

1条回答 默认 最新

  • 爷就是这个范儿 2021-10-27 09:45
    关注

    首先你的第一个 for()写的是啥么?

     system("mode con cols=80 lines=60 ");
        system("title 向你致以最诚挚的祝福!");
        char data[200][100] = { "祝你生日快乐!祝你生日快乐 !","\nHappy birthday to you!\n","Happy birthday my dear friend!\n",
        "在你面前的台里本,总有一天是很独特!\n","虽然你和我,没办法选,来到世界的某刻。\n","天气寒冷,又或炎热,又或者什么血型和星座!\n",
        "每年这刻,我对自己说,有生的日子要更快乐!\n","天气寒冷,又或炎热,又或者什么血型和星座!\n","每年这刻,我对自己说,有生的日子要更快乐!\n",
        "爸爸妈妈辛苦了!谢谢你们为我付出太多!\n","生日祝福,吹灭蜡烛,我要我自己不许哭。 \n","长大了一岁变得靠谱,继续走自己的旅程!\n",
        "又到这一个时刻,幸福的花火,手机祝福收到很多很多。\n","看到最后一条来自你,写着让我感动的话语。\n","亲爱的朋友要经常联络,我们一起来唱这首歌!\n",
        "祝你生日快乐额!我们一起快乐!\n"};
        int sign = 0;
        int i, j, e;
        int a;
        long time;
    
        i = 1;
        a = I;
                for (j = (int)(I - sqrt(I * I - (a - i) * (a - i))); j > 0; j--)
            printf(" ");
            for (e = 1; e <= 2 * sqrt(I * I - (a - i) * (a - i)); e++)
            printf("\3");
            for (j = (int)
            (2 * (I - sqrt(I * I - (a - i) * (a - i)))); j > 0; j--)
            printf(" ");
            for (e = 1; e <= 2 * sqrt(I * I - (a - i) * (a - i)); e++)
            printf("\3");
            printf("\n");
      
    
    
        for (i = 1; i < 80; i++)
        {
            if (i == 25)
            {
                printf("======祝昕妤,生日快乐。======");
                i += 30;
            }
            printf("\3");
        }
        printf("\n");
        for(i = 1; i <= R / 2; i++)
        {
            if (i % 2 || i % 3)
                continue;
            for (j = (int)(R - sqrt(R * R - i * i)); j > 0; j--)
                printf(" ");
            for (e = 1; e <= 2 * (sqrt(R * R - i * i) - (R - 2 * I)); e++)
                printf("\3");
            printf("\n");
        }
        for (; ; )
        {
            system("color a");
            for (time = 0; time < 99999999; time++); system("color b");
            for (time = 0; time < 99999999; time++); system("color c");
            for (time = 0; time < 99999999; time++); system("color d");
            for (time = 0; time < 99999999; time++); system("color e");
            for (time = 0; time < 99999999; time++); system("color f");
            for (time = 0; time < 99999999; time++);
            system("color 0"); for (time = 0; time < 99999999; time++);
            system("color 1"); for (time = 0; time < 99999999; time++);
            system("color 2"); for (time = 0; time < 99999999; time++);
        }
    
    
    评论

报告相同问题?

问题事件

  • 创建了问题 10月26日

悬赏问题

  • ¥15 ansys fluent计算闪退
  • ¥15 有关wireshark抓包的问题
  • ¥15 需要写计算过程,不要写代码,求解答,数据都在图上
  • ¥15 向数据表用newid方式插入GUID问题
  • ¥15 multisim电路设计
  • ¥20 用keil,写代码解决两个问题,用库函数
  • ¥50 ID中开关量采样信号通道、以及程序流程的设计
  • ¥15 U-Mamba/nnunetv2固定随机数种子
  • ¥15 vba使用jmail发送邮件正文里面怎么加图片
  • ¥15 vb6.0如何向数据库中添加自动生成的字段数据。