请问一下为什么我输出的时候特别慢谢谢
void msg_()
{
MOUSEMSG msg=GetMouseMsg();
while(MouseHit())
{
if (msg.uMsg == WM_LBUTTONDOWN && state == BEGIN)
{
begin.hang = msg.x / (imgsize + 10);
begin.lie = msg.y / (imgsize + 10);
printf("begiin %d %d\n", begin.hang, begin.lie);
state = END;
}
else if (msg.uMsg == WM_LBUTTONDOWN && state == END)
{
end.hang = msg.x / (imgsize + 10);
end.lie = msg.y / (imgsize + 10);
printf("%d %d\n", end.hang, end.lie);
state = BEGIN;
}
}
}
int main()
{
initgraph(h,n,SHOWCONSOLE);
init_();
while(1)
{
BeginBatchDraw();
gamedraw();
EndBatchDraw();
msg_();
}
getchar();
closegraph();
}