WHEREXY.txt

#include <conio.h>
 
void main(void)
{
   int row, column;
 
   clrscr();
 
   cprintf("This is line 1\r\n");
   cprintf("Line 2 is a little longer\r\n");
   cprintf("This is the last line");
 
   row = wherey();
   column = wherex();
 
   cprintf("\r\nThe cursor position was row %d column %d\n",
     row, column);
}
 




原文地址:https://www.cnblogs.com/xe2011/p/2534480.html