代码如下:
#include <conio.h>
#include <stdio.h>
void main()
{
char leftbuf[]={40*24*2};
char rightbuf[]={40*24*2};
textmode(C80);
textbackground(BLACK);
clrscr();
gotoxy(60,1);
cprintf("Press ESC to Quit.");
window(1,2,40,25);
textattr(128+YELLOW+(BLUE<<4));
clrscr();
gettext(1,2,40,25,leftbuf);
window(41,2,80,25);
textattr(128+RED+(GREEN<<4));
clrscr();
gettext(41,2,80,25,rightbuf);
getch();
}
请帮我看看,谢谢!!!!