注册 登录
编程论坛 C图形专区

怎么显示不出我开的这个窗口!

whbc 发布于 2010-11-20 14:52, 630 次点击
程序代码:
             #include <stdio.h>
             #include <conio.h>
             int main()
             {
                window(10,10,15,28);
                textbackground(5);
                clrscr();
                textcolor(2);
                highvideo();
                clrscr();
                gotoxy(6,3);
                cprintf("%s","Welcome you to use load the system");
                gotoxy(3,5);
                cprintf("%s","name");
                gotoxy(3,7);
                cprintf("%s","password");
                gotoxy(19,13);
                cprintf("%s","load");
                getch();

            }
各位大侠看看,这是我编写的一个小程序,里面开了一个窗口,可是显示不了,总是显示在整个窗口上!!哪位大侠帮忙修改看看!
1 回复
#2
xiaomarn2010-12-07 17:34
程序代码:
#include <stdio.h>
#include <conio.h>
int main()
{
      textbackground(0);
      clrscr();
      window(10,5,56,15);
      textbackground(5);
      clrscr();
      textcolor(2);
      highvideo();
      clrscr();
      gotoxy(6,3);
      cprintf("%s","Welcome you to use load the system");
      gotoxy(3,5);
      cprintf("%s","name");
      gotoxy(3,7);
      cprintf("%s","password");
      gotoxy(19,13);
      cprintf("%s","load");
      getch();
      return 0;
}

1