中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

中国DOS联盟论坛
现在时间是 2026-06-29 09:41
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » 帮帮忙,各位大侠 查看 678 回复 0
楼 主 帮帮忙,各位大侠 发表于 2007-05-09 16:54 ·  中国 山西 太原 联通
新手上路
积分 10
发帖 3
注册 2007-05-06 16:58
19年会员
UID 87681
性别 男
状态 离线
下面是小弟的一段代码,在一个文本框中输出一些信息,但是小弟不会做,因为有时信息太长的话会碰到边界,不能换行,小弟不会处理!于是用了个笨办法,还是有问题!请大侠们赐教!帮忙写一个新的算法救救小弟!谢谢!
#include <graphics.h>
#include <dos.h>
#include <conio.h>
#include <stdio.h>
void Init(void);

void main()
{ Init();
setlinestyle(0,0,3);
rectangle(50,40,610,460);
outtextxy(51,41,"Welcome to use the software.This software is used to get information about" );
outtextxy(51,42,"how the memory is delivered when a C language program is to run! And it is");
outtextxy(51,43,"programed by Zhang JIhui for a graduated design! If you want to escape this");
outtextxy(51,44,"frame,please press ESC on the keyboard! ");
}
void Init(void)
{
int gd=DETECT,gm;
initgraph(&gd,&gm,"d:\\tc\\bgi");
cleardevice();
}
论坛跳转: