Windows 7下的tc ++中的图形 [英] graphic in tc++ under windows 7

查看:56
本文介绍了Windows 7下的tc ++中的图形的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我尝试在Turbo C ++环境中运行图形程序(我的计算机中的系统是Windows 7):

Hi I try to run my graphic program in the Turbo C++ environment (the system in my computer is windows 7):

#include<graphics.h>
#include<stdio.h>
#include<math.h>
#include<conio.h>
#define pi 3.1415

int main (void)
{
int gdriver=DETECT,gmode,errorcode;
int x,y, pcolor;
double angle,sinofA;
initgraph(&gdriver,&gmode,"..//bgi");
setcolor(6);
line(0,100,200,100);
for(x=0;x<200;x++)

{

angle=((double)x/200)*(2*pi);

sinofA=sin(angle);

y=100+100*sinofA;

putpixel(x,y,9);

}

getch();

closegraph();

return 0;

}


显示以下错误:
该系统不支持全屏模式.


The following Error showed:
This system does not support full screen mode.

推荐答案

因为TC与Window7不兼容
Becouse TC is not compatible with Window7


tc支持窗口7的版本是什么?
WHAT IS VERSION IN tc SUPPORT WINDOW 7??


我尝试在DosBOX下运行我的程序,但显示了相同的错误:
该系统不支持全屏模式.


我可以在Windows7下为TC工作获得新版本的编译器吗?
谢谢
I try run my program under DosBOX but the same error showed:
This system does not support full screen mode.


CAN I get new version of compiler for TC work unde Windows7??
thanks


这篇关于Windows 7下的tc ++中的图形的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆