C语言小问题,getchar没有反应

做表白烟花

#include
#include
#include
#pragma comment(lib,"winmm.lib")
#include
//烟花弹
struct jet
{//属性
    int x,y;//当前坐标
    int hx, hy;//最高点坐标
    unsigned long t1, t2, dt;//时间来控制速度
    IMAGE img;//保存烟花弹的图片
    bool isshoot;//烟花弹是否属于正在上升的状态
}jet;

int main()
{
    srand(time(0));
    initgraph(1200, 800);
    mciSendString("open 小阿枫-曾经的你.mp3", 0, 0, 0);
    mciSendString("play 小阿枫-曾经的你.mp3", 0, 0, 0);
    mciSendString("repeat 小阿枫-曾经的你.mp3", 0, 0, 0);
    settextcolor(YELLOW);

    settextstyle(25, 0, "微软雅黑");
    outtextxy(400, 200, "重要的事情说三遍!");
    outtextxy(400, 250, "浩哥真帅");
    outtextxy(400, 300, "浩哥真帅");
    outtextxy(400, 350, "浩哥真帅");
getchar();

    //初始化烟花弹
    jet.x = rand()%(1200-20);
    jet.y = 750; 
    jet.hx = jet.x;
    jet.hy = rand() % (400);
    jet.t1 = GetTickCount();//获取系统的时间
    jet.dt = 10;//dt 10ms
    jet.isshoot = true;
    loadimage(&jet.img, "jet.jpg", 20, 50);
    putimage(jet.x, jet.y, &jet.img, SRCINVERT);
    while (1);
    return 0;
}
运行开始后,按回车键没反应,显示getchar的返回值被忽略
刚学习C语言,不会修改。求解!



 



你输入啥了?

有没有可能是因为这些东西需要在多线程的情况下运行