vc++6.0的win32 console application编写C语言时有没有光标定位函数

来源:百度知道 编辑:UC知道 时间:2024/07/06 23:43:30
在字符界面下光标跳到x行y列,并要求在x行y列之后的内容不被删除
gotoxy()在vc里没有

不知是不是你所需要的:

函数名: gotoxy
功  能: 在文本窗口中设置光标
用  法: void gotoxy(int x, int y);
程序例:
#include <conio.h>
int main(void)
{
   clrscr();
   gotoxy(35, 12);
   cprintf("Hello world");
   getch();
   return 0;
}
__________________________________________________
嗯,的确没有。这个函数是在一个C函数大全里找到的,可能有年头了...