亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dosex.c

?? c版本的
?? C
字號:
/******************************************************************/
/* This is an example program to illustrate how to;               */
/*  1. Get the time and date from DOS                             */
/*  2. Set the cursor to any position on the screen               */
/*  3. Read characters from the keyboard and display their codes  */
/*  4. How to scroll a window up on the monitor                   */
/*  5. Format a program for ease of reading and understanding     */
/*  6. How to do proper prototyping                               */
/******************************************************************/

void draw_box(void);
void disp_char(int inchar);
void get_time(int *hour,int *minute,int *second);
void disp_time_date(void);
void pos_cursor(char row,char column);
void scroll_window(void);

#include "stdio.h"
#include "dos.h"
#include "conio.h"

int main()
{
int hour, minute, sec, old_sec;
int character;

   draw_box();              /* draw the boxes around the fields */
   old_sec = 0;             /* this variable stores the old time
                               so we can look for a change      */

   do {
      if (kbhit()) {                     /* has a key been hit? */
         character = getch();            /* read it in          */
         disp_char(character);           /* display it          */
      }

      get_time(&hour,&minute,&sec);      /* get the time of day */
      if (sec != old_sec) {              /* if it has changed,  */
         disp_time_date();               /* update the display  */
         old_sec = sec;                  /* save new time       */
      }

   } while (character != 'Q');        /* Quit when a Q is found */

   pos_cursor(0,0);              /* put cursor at top of screen */
}


/* **************************************************** drawbox */
/* This routine draws a box on the screen. The keys hit, and    */
/* the time and date are displayed in these boxes. There is     */
/* nothing special about these boxes, they are simply output    */
/* using the printf function.                                   */
/* ************************************************************ */
void draw_box(void)
{
int index;
char line[81];

   for (index = 0;index < 80;index++)       /* three blank rows */
      line[index] = ' ';
   line[80] = NULL;                            /* end of string */
   for (index = 0;index < 3;index++)
      printf("%s",line);

   line[8] = 201;                       /* draw top line of box */
   for (index = 9;index < 70;index++)
      line[index] = 205;
   line[70] = 187;
   printf("%s",line);

   line[8] = 186;                    /* draw sides of large box */
   for (index = 9;index < 70;index++)
      line[index] = ' ';
   line[70] = 186;
   for (index = 0;index < 15;index++)
      printf("%s",line);

   line[8] = 204;                    /* draw line between boxes */
   for (index = 9;index < 70;index++)
      line[index] = 205;
   line[70] = 185;
   printf("%s",line);

   line[8] = 186;                    /* sides for time/date box */
   for (index = 9;index < 70;index++)
      line[index] = ' ';
   line[70] = 186;
   printf("%s",line);

   line[8] = 200;                     /* bottom line of the box */
   for (index = 9;index < 70;index++)
      line[index] = 205;
   line[70] = 188;
   printf("%s",line);

   for (index = 0;index < 80;index++)       /* three blank rows */
      line[index] = ' ';
   for (index = 0;index < 3;index++)
      printf("%s",line);

}


/* ************************************************** disp_char */
/* This routine displays the characters hit on the monitor. If  */
/* the first character is a zero, a special character has been  */
/* hit, and the zero is displayed. The next character is read,  */
/* and it is displayed on the monitor.                          */
/* ************************************************************ */
void disp_char(int inchar)
{
   scroll_window();
   pos_cursor(17,15);          /* position of message on screen */

   if(inchar == 0) {
      printf(" 00 ");            /* a special character was hit */
      inchar = getch();          /* get the next part of it     */
      switch (inchar) {
         case 59  :
         case 60  :
         case 61  :
         case 62  :
         case 63  :              /* these are the function keys */
         case 64  :
         case 65  :
         case 66  :
         case 67  :
         case 68  : printf("%4d Function key F%d\n",inchar,inchar-58);
                    break;

         case 94  :
         case 95  :
         case 96  :
         case 97  :
         case 98  :         /* these are the ctrl-function keys */
         case 99  :
         case 100 :
         case 101 :
         case 102 :
         case 103 : printf("%4d Function key Ctrl-F%d\n",inchar,
                       inchar-93);
                    break;

         case 84  :
         case 85  :
         case 86  :
         case 87  :        /* these are the upper-function keys */
         case 88  :
         case 89  :
         case 90  :
         case 91  :
         case 92  :
         case 93  : printf("%4d Function key Upper-F%d\n",inchar,
                       inchar-83);
                    break;

         case 104 :
         case 105 :
         case 106 :
         case 107 :
         case 108 :          /* these are the alt-function keys */
         case 109 :
         case 110 :
         case 111 :
         case 112 :
         case 113 : printf("%4d Function key Alt-F%d\n",inchar,
                       inchar-103);
                    break;

         default  : printf("%4d Special key hit\n",inchar);
      }

   } else                        /* a regular character was hit */
      printf("    %4d (%c) Character Hit.\n",inchar,inchar);

   pos_cursor(25,1);        /* hide the cursor on the 26th line */
}


/* *************************************************** get_time */
/* This routine calls the DOS function call for time of day. It */
/* returns the time of day to the calling program in the three  */
/* pointers used in the call.                                   */
/* ************************************************************ */
void get_time(int *hour,int *minute,int *second)
{
union REGS inregs;
union REGS outregs;

   inregs.h.ah = 44;               /* Hex 2C - Get current time */
   int86(0x21,&inregs,&outregs);
   *hour = outregs.h.ch;
   *minute = outregs.h.cl;
   *second = outregs.h.dh;
}


/* ********************************************* disp_time_date */
/* This routine displays the time and date on the monitor in a  */
/* fixed position. It gets the time from the get_time function, */
/* and gets the date from its own built in DOS call. Good       */
/* programming practice would move the date to another function */
/* but this is an illustrative example to display methods of    */
/* doing things. This routine also calls the cursor positioning */
/* function to put the time and date where we want them.        */
/* ************************************************************ */
void disp_time_date(void)
{
int hour, minute, second;
union REGS inregs;
union REGS outregs;

   pos_cursor(19,19);  /* position the cursor for date and time */

   inregs.h.ah = 42;              /* hex 2A - What is the date? */
   int86(0x21,&inregs,&outregs);  /* interrupt 21               */
   printf("Date = %2d/%2d/%2d    ",
      outregs.h.dh,                 /* month - 1 to 12          */
      outregs.h.dl,                 /* day - 1 to 31            */
      outregs.x.cx);                /* year - 1980 to 2099      */

   get_time(&hour, &minute, &second);
   printf("Time = %2d:%2d:%2d\n",hour, minute, second);

   pos_cursor(25,1);        /* hide the cursor on the 26th line */
}

/* ************************************************* pos_cursor */
/* This routine positions the cursor at the requested row and   */
/* column. The upper left corner is row 0 and column 0          */
/* ************************************************************ */
void pos_cursor(char row,char column)
{
union REGS inregs;
union REGS outregs;

   inregs.h.ah = 2;        /* service 2 - position the cursor   */
   inregs.h.dh = row;
   inregs.h.dl = column;
   inregs.h.bh = 0;
   int86(0x10,&inregs,&outregs);                /* interrupt 10 */
}


/* ********************************************** scroll_window */
/* This routine scrolls all of the material in the key hit      */
/* window up one space leaving room for another entry.          */
/* ************************************************************ */
void scroll_window(void)
{
union REGS inregs;
union REGS outregs;

   inregs.h.ah = 6;      /* service 6 - scroll window           */
   inregs.h.al = 1;      /* number of lines to scroll           */
   inregs.h.ch = 3;      /* top row of window                   */
   inregs.h.cl = 9;      /* left column of window               */
   inregs.h.dh = 17;     /* bottom row of window                */
   inregs.h.dl = 69;     /* right column of window              */
   inregs.h.bh = 7;      /* attribute of blank line             */
   int86(0x10,&inregs,&outregs);                /* interrupt 10 */

}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕视频一区| 91丨九色丨国产丨porny| 精品国产免费人成电影在线观看四季 | 欧美在线三级电影| 国产精品久久久一本精品| 免费欧美高清视频| 欧美日韩国产另类不卡| 天天综合网天天综合色| 久久综合网色—综合色88| 国产不卡一区视频| 亚洲精品一二三区| 欧美性猛交xxxxxx富婆| 亚洲风情在线资源站| 欧美一区二区视频网站| 成人免费毛片片v| 国产精品久久久久久久久久免费看 | 精品一区二区三区久久久| 制服丝袜在线91| 国产精品久久午夜夜伦鲁鲁| 亚洲午夜久久久| 成人免费视频视频| 日韩精品在线看片z| 久久99久久久欧美国产| 精品成人佐山爱一区二区| 狠狠狠色丁香婷婷综合久久五月| 国产日韩视频一区二区三区| 一本色道久久加勒比精品| 亚洲视频一二三区| 老司机精品视频在线| 午夜精彩视频在线观看不卡| 一本到高清视频免费精品| 国产成人精品免费一区二区| 国产mv日韩mv欧美| 国产永久精品大片wwwapp| 国产精品日产欧美久久久久| 免费观看在线综合| 88在线观看91蜜桃国自产| 国内精品伊人久久久久av影院| 国产九色sp调教91| 亚洲精品在线三区| 国产电影一区在线| 亚洲福利一区二区三区| 精品va天堂亚洲国产| 国产一区二区精品久久91| 丝袜美腿高跟呻吟高潮一区| 国产成人亚洲综合色影视| 精品国产乱码久久久久久影片| 成人听书哪个软件好| 国产精品女上位| 欧美日韩免费观看一区二区三区 | 国产一区二区伦理| 国产网红主播福利一区二区| 91精品福利视频| 久久久夜色精品亚洲| 不卡一区二区三区四区| 亚洲高清视频中文字幕| 日韩一区二区三区观看| 日韩一级成人av| 亚洲午夜电影网| 亚洲国产成人高清精品| 国产永久精品大片wwwapp| 亚洲国产精品ⅴa在线观看| 在线播放欧美女士性生活| 欧美主播一区二区三区美女| 中文字幕色av一区二区三区| 日本久久精品电影| 午夜精品爽啪视频| 久久久青草青青国产亚洲免观| 丁香婷婷综合五月| 欧美日韩在线亚洲一区蜜芽| 毛片av一区二区| 精品国产成人在线影院| 成人精品国产一区二区4080| 男人的天堂久久精品| 国产亚洲一区二区在线观看| 91麻豆精品国产91久久久更新时间| 在线观看日韩毛片| 国产麻豆精品在线| 韩国v欧美v日本v亚洲v| 精品成人一区二区三区四区| 777午夜精品视频在线播放| 久久99九九99精品| 琪琪一区二区三区| 国产精品久久久久影院色老大| 欧美色视频在线观看| 日本亚洲视频在线| 中文字幕制服丝袜一区二区三区| 欧美久久久久免费| gogo大胆日本视频一区| 久久综合九色综合欧美98 | 午夜精品福利久久久| 99视频超级精品| 日本不卡高清视频| 亚洲图片有声小说| 日日夜夜精品视频天天综合网| 亚洲国产精品成人综合| 国产精品美女久久久久av爽李琼| 欧美精品久久天天躁| 色综合久久久久久久久久久| 国产不卡免费视频| 久久精品国产99国产精品| 依依成人综合视频| 国产精品丝袜久久久久久app| 欧美浪妇xxxx高跟鞋交| 麻豆精品在线看| 亚洲国产成人精品视频| 亚洲日本va午夜在线电影| 欧美国产视频在线| 日韩视频一区二区三区在线播放| 国产一区二区免费在线| 欧美成人在线直播| 制服丝袜中文字幕亚洲| 在线电影欧美成精品| 91丨porny丨户外露出| 国产一区二区三区久久悠悠色av| 老司机精品视频线观看86| 久久精品国产**网站演员| 亚洲aaa精品| 国产精品久久久久影院老司| 国产午夜精品久久久久久久 | 国产午夜亚洲精品理论片色戒| 777亚洲妇女| 欧美日韩在线综合| 欧美在线999| 精品国产青草久久久久福利| 日韩午夜av电影| 国产精品久久影院| 国产大陆a不卡| 性久久久久久久久| 五月综合激情婷婷六月色窝| 午夜电影网亚洲视频| 国产成人免费在线视频| 99精品一区二区| 一本在线高清不卡dvd| 精品欧美一区二区三区精品久久| 欧美一区二区在线免费观看| 成人欧美一区二区三区视频网页| 青青国产91久久久久久| 日韩三级中文字幕| 在线国产电影不卡| 欧美中文字幕亚洲一区二区va在线| 99久久久免费精品国产一区二区| 91久久久免费一区二区| 久久众筹精品私拍模特| 日韩电影一区二区三区四区| 激情六月婷婷久久| 97aⅴ精品视频一二三区| 日韩一区二区三区电影在线观看 | 欧美电影一区二区三区| 中文字幕免费一区| 亚洲大片免费看| 国产999精品久久久久久绿帽| 亚洲综合在线电影| 国内久久精品视频| 国产欧美日韩不卡免费| 99精品欧美一区| 日韩视频永久免费| 国产精品家庭影院| 国产精品久久久久一区| 男女视频一区二区| 在线不卡a资源高清| 三级不卡在线观看| 国产成人免费视频网站高清观看视频| 99久久综合精品| 久久蜜桃一区二区| 国产精品网站在线| 舔着乳尖日韩一区| 成人精品视频网站| 午夜视频一区二区| 最新欧美精品一区二区三区| 捆绑调教一区二区三区| 在线观看免费视频综合| 亚洲国产高清aⅴ视频| 色悠悠久久综合| 日日噜噜夜夜狠狠视频欧美人| 欧洲一区在线观看| 久久久久国色av免费看影院| 这里是久久伊人| 日本高清不卡在线观看| 久久精品一区四区| 国产最新精品精品你懂的| 欧美中文字幕一区二区三区亚洲| 成人va在线观看| 国产麻豆视频精品| 亚洲国产高清不卡| 裸体健美xxxx欧美裸体表演| 欧美又粗又大又爽| 99久久综合精品| 99精品欧美一区二区三区小说 | 国产盗摄一区二区三区| 精品欧美一区二区久久| 亚洲国产美女搞黄色| 亚洲激情自拍偷拍| 亚洲欧美日韩在线不卡| 欧洲另类一二三四区| 中文字幕+乱码+中文字幕一区| 久久精品国产成人一区二区三区 | 亚洲国产精品久久人人爱蜜臀| 日韩一区二区免费视频| 久久五月婷婷丁香社区|