标题:请问如何将TC2.0中的图形程序在dev cpp中实现?谢谢!
取消只看楼主
widemanzhao
Rank: 1
等 级:新手上路
帖 子:17
专家分:0
注 册:2007-10-11
 问题点数:0 回复次数:0 
请问如何将TC2.0中的图形程序在dev cpp中实现?谢谢!
这是在TC2.0下编译通过并成功运行的程序,运行结果为一系列同心圆。
#include<stdio.h>
#include<graphics.h>
int main()
{
int gdrive,gmode;
int color,maxclr;
int radius;

gdrive=DETECT;
initgraph(&gdrive,&gmode,"E:\\tc2.0\\BGI");

setbkcolor(WHITE);    /*设置白色背景*/
radius=1;
maxclr=getmaxcolor()+1;
for(color=0;color<maxclr;color++){
  setlinestyle(0,0,3);    /*设置粗实线绘线模式*/
  setcolor(color);
  circle(250,200,radius);
  radius+=3;
}

getch();
closegraph();
}

今天看到了一篇文章介绍如何在dev cpp中实现图形处理:(http://blog.
我已按照上述的步骤重新设置了dev cpp,但是还是无法在dev cpp中运行出想要的结果。请教各位高手看看上述的程序在dev cpp环境下怎样修改才能运行出结果来?
谢谢!
搜索更多相关主题的帖子: cpp 图形 dev 
2008-02-02 12:50



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-199360-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.136703 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved