我想用C实现:
每次输出一句话都是从屏幕的左上角第一个位置上开始输出。
也就是说要把前一次的覆盖掉。
不知道这论坛里的高手们有没有好方法。(不要告诉我回车N行后再输出)
/*在Turbo C 2.0下有效*/
#include <conio.h>
#include <stdio.h>
int main()
{
clrscr( );
printf("now we are at line 1 colomn 1\n");
gotoxy(5,24); printf("press any key to continue...");
getch( );
gotoxy(1,1);
printf("NOW WE ARE AT LINE 1 COLOMN 1 AGAIN \n");
gotoxy(5,24); printf("press any key to exit... ");
getch( );
return 0;
}
/*在Turbo C 2.0下有效*/
#include <conio.h>
#include <stdio.h>
int main()
{
clrscr( );
printf("now we are at line 1 colomn 1\n");
gotoxy(5,24); printf("press any key to continue...");
getch( );
gotoxy(1,1);
printf("NOW WE ARE AT LINE 1 COLOMN 1 AGAIN \n");
gotoxy(5,24); printf("press any key to exit... ");
getch( );
return 0;
}
怎样在VC++6。0里有用呢??请指教!!!