win-TC中图形的显示?
在win-TC下变了个绘图的小程序,也用到了getch();运行时屏幕为什么总是一闪而过?
源程序如下:
#include"stdio.h"
#include"graphics.h"
void main()
{
int driver,mode;
detectgraph(&driver,&mode);
initgraph(&driver,&mode,"\\tc");
bar3d(50,50,250,150,20,1);
getch();
closegraph();
}