qq_40976901
qq_40976901
2017-11-07 11:31

请问各位大神此代码有什麽错误

  • 急切
  • 求答

// 主函数

include

int main()
void welcome()
{
//setfillstyle(0);
setcolor(YELLOW);

for (int i = 0; i < 50; i++)
{
    int x = 600 + int(180 * sin(PI * 2 * i / 60));
    int y = 200 + int(180 * cos(PI * 2 * i / 60));
    cleardevice();
    settextstyle(i, 0, "楷体");
    outtextxy(x-80, y, "浪漫表白日");
    outtextxy(x-10, y+100, "献给挚爱某某某");
    Sleep(25);
}

getchar();
cleardevice();
settextstyle(25, 0, "楷体");
outtextxy(400, 200, "原来你是我最想留住的幸运");
outtextxy(400, 250, "原来我们和爱情曾经靠得那么近");
outtextxy(400, 300, "那为我对抗世界的决定");
outtextxy(400, 350, "那陪我淋的雨");
outtextxy(400, 400, "一幕幕都是你");
outtextxy(400, 450, "一尘不染的真心");
outtextxy(600, 500, "----《小幸运》");


getchar();
return 0;

}

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

1条回答