Board logo

标题: 帮帮忙,各位大侠 [打印本页]

作者: wch02090408     时间: 2007-5-9 16:54    标题: 帮帮忙,各位大侠
下面是小弟的一段代码,在一个文本框中输出一些信息,但是小弟不会做,因为有时信息太长的话会碰到边界,不能换行,小弟不会处理!于是用了个笨办法,还是有问题!请大侠们赐教!帮忙写一个新的算法救救小弟!谢谢!
#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();
}