可以使用gotoxy函数。原型:extern void gotoxy(int x,int y);用法:#include <system.h> 功能:将光标移动到指定位置说明:gotoxy(x,y)将光标移动到指定行y和列x。设置光标到文本屏幕的指定位置,其中参数x,y为文本屏幕的坐标。假设上一行是屏幕的左上角。gotoxy(0,0)//将光标移动到屏幕左上...
turboc的 include <stdio.h> include <conio.h> int main(){ int x, y;gotoxy(5, 5);printf("position: 5, 5");x = wherex();y = wherey();getch();gotoxy(x, y - 1);getch();} 控制台的 include <windows.h> include <stdio.h> include <conio.h> void gotoxy(HANDLE hO...
Text.Select(index,length);
用c语言编写。张三正使用hzcu_pad打一篇文档,文档只包含字母、数字和空格,在打字过程中可能会一次或多次按下Home键、End键、←方向键、→方向键、Insert键、Backspace键。请编写程序,给定张三在键盘上按键的序列,输出张三屏幕上最终显示的文本。提示:Home键会将当前光标移至文本开始位置,End键当前光标移至文本尾,...