[C] 将文本从存储区拷贝到屏幕 →→→→→进入此内容的聊天室

来自 , 2019-07-28, 写在 C, 查看 112 次.
URL http://www.code666.cn/view/66e8ba82
  1. #include <conio.h>
  2. int main(void)
  3. {
  4.    char buffer[512];
  5.  
  6.    /* put some text to the console */
  7.    clrscr();
  8.    gotoxy(20, 12);
  9.    cprintf("This is a test.  Press any key to continue ...");
  10.    getch();
  11.  
  12.    /* grab screen contents */
  13.    gettext(20, 12, 36, 21,buffer);
  14.    clrscr();
  15.  
  16.    /* put selected characters back to the screen */
  17.    gotoxy(20, 12);
  18.    puttext(20, 12, 36, 21, buffer);
  19.    getch();
  20.  
  21.    return 0;
  22. }
  23.  

回复 "将文本从存储区拷贝到屏幕"

这儿你可以回复上面这条便签

captcha