本文介绍了outtextxy正在阻止洪水填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 大家好, 我正在使用MSDOS操作系统并且在一个程序的功能中我试图显示几百行的文件在图形模式下使用 outtextxy()。 程序从文件中获取20行,并使用带有彩色字母的outtextxy显示 。当用户给出一个 键(向上箭头)输入旧内容将被删除(我画了旧的 文本的背景颜色),新文本将显示为新的 文件。 它工作但当我切换到使用floodfill和fillellipse等相同的 程序的其他部分时程序没有 做他们。这种情况发生在每次我打电话给文件后显示 功能。 将连续使用不同颜色的outtextxy和 访问文件内容经常崩溃程序。我检查了 我是否关闭了文件并正确使用了fseek。可以有人 帮助我。 提前致谢, Krishna。 解决方案 kkrish说: < snip> 你的问题要么与C有什么关系,要么与你的调用有关。 听起来非常像Turbo C扩展。根据你的描述,不可能知道问题出在哪里。如果这是一个C问题,我们可以 帮助。如果使用Turbo扩展程序有问题,我们可以指向 正确方向。但是为了找出它是什么,我们需要看看你的 程序源代码。 - Richard Heathfield Usenet是一个奇怪的地方 - dmr 29/7/1999 http://www.cpax.org.uk 电子邮件:rjh在上述域名, - www。 < snip> 你的问题要么与C有什么关系,要么与你的电话有关。 听起来非常像Turbo C扩展。根据你的描述,不可能知道问题出在哪里。如果这是一个C问题,我们可以 帮助。如果使用Turbo扩展程序有问题,我们可以指向 正确方向。但要找出它是什么,我们需要看到你的 程序源代码。 outtextxy,floodfill都是与图形相关的概念。 outtextxy是 包含在turboC的graphics.h库中,不包含在 ANSI标准中。 我认为outtextxy如果它与你正在填充的物体的边界重叠,肯定会影响洪水填充。 Ajinkya Hello all,I am using MSDOS operating system and in a function of a program Itried to display a few hundred lines of a file in graphics mode usingouttextxy().The program gets 20 lines from a file and displaysthem using outtextxy with colored letters .When the user gives akey(up arrow) input the old content will be erased (i drew the oldtext in background color) and new text will be shown fresh from thefile.It worked but when I switched to some other part of the sameprogram which uses floodfill and fillellipse,etc the program does notdo them.This happens everytime after I call the file displayingfuction.Will continuous usage of outtextxy in different colors andaccesing the file contents frequenntly crash a program.I checkedwhether I have closed the files and used fseek properly.Can someonehelp me.Thanks in advance ,Krishna. 解决方案<snip>Your problem is either to do with C or to do with your calls to whatsound very much like Turbo C extensions. From your description, it isimpossible to know where the problem lies. If it''s a C problem, we canhelp. If it''s problem using a Turbo extension, we can point you in theright direction. But to find out which it is, we need to see yourprogram source code.--Richard Heathfield"Usenet is a strange place" - dmr 29/7/1999 http://www.cpax.org.ukemail: rjh at the above domain, - www.<snip>Your problem is either to do with C or to do with your calls to whatsound very much like Turbo C extensions. From your description, it isimpossible to know where the problem lies. If it''s a C problem, we canhelp. If it''s problem using a Turbo extension, we can point you in theright direction. But to find out which it is, we need to see yourprogram source code.outtextxy, floodfill are all graphics related concepts. outtextxy isincluded in the graphics.h library of turboC which not included in theANSI standards.I think outtextxy will definitely effect floodfill if it overlaps withthe boundaries of the object you are filling.Ajinkya 这篇关于outtextxy正在阻止洪水填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!