#include
#include
#include
#include
int main()
{
HANDLE hOutput = GetStdHandle(STD\_OUTPUT\_HANDLE);
int t = 1;
while (t++)
{
COORD huoquan;
COORD xiangLing = { 40,15 };
int R = 13;
huoquan.X = xiangLing.X + 2 \* R \* cos(t\*0.2);
huoquan.Y = xiangLing.Y + R \* sin(t \* 0.2);
system("cls");
SetConsoleCursorPosition(hOutput, xiangLing);
printf("香菱");
SetConsoleCursorPosition(hOutput, huoquan);
printf("火圈");
CONSOLE\_CURSOR\_INFO curInfo = { 1,FALSE };
SetConsoleCursorInfo(hOutput, &curInfo);
Sleep(200);
}
}

标签