中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
游客 | 登录 | 注册 | 会员 | 搜索 | 中国DOS联盟
中国DOS联盟论坛
现在时间是 2026-10-31 19:17
共 47,815 主题排行 / 349,930 发帖 / 今日 0 篇 / 48,290 会员排行
DOS开发编程 & 发展交流 (开发室) » 帮帮忙,各位大侠
可打印版本  836 / 0
第1楼 wch02090408 发表于 2007-05-09 16:54
新手上路 发帖 3 积分 10
帮帮忙,各位大侠
下面是小弟的一段代码,在一个文本框中输出一些信息,但是小弟不会做,因为有时信息太长的话会碰到边界,不能换行,小弟不会处理!于是用了个笨办法,还是有问题!请大侠们赐教!帮忙写一个新的算法救救小弟!谢谢!
#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();
}
[ 联系联盟系统管理团队 - 中国DOS联盟 - 标准版 ]
Sponsored by ifanr Inc | © 2001–2023