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

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

?? mfpshare.doc

?? 多格式數據錄入庫  
?? DOC
?? 第 1 頁 / 共 5 頁
字號:
   10)  This field is finished, onto the next field...

    This describes the decisions mfp() makes when working a field. The
    field processor provides the pre and post validation functions a variety
    of data about the current field. Since the data is global, the pre and
    post validation functions you write can have access to all data in
    all fields allowing a great degree of flexibilty. The mfp() function
    will allow you to perform any type of operation you choose, including
    modifying the field you are entering or other fields.

    MFP provides the following list of global variables for your validation
    functions to use:

  int mfp_valid     --  This variable is used to determine the outcome of your
                        pre or post validation. If the validation fails this
                        variable must be made FALSE. If your validation passes
                        then make it TRUE.

  int mfp_field     --  This variable represents the current field number
                        starting with zero.

  int mfp_update    --  This variable indicates if the fields contents have
                        been changed. Non-zero if changed, zero if not changed.

  void *mfp_data    --  This variable is a pointer to the data item being
                        entered. Your validation function may use this any
                        way you see fit. You may change the data items value
                        or read it directly by using it.

  char *mfp_picture --  This is a pointer to the picture formatting string
                        for the field being entered. You may use it any
                        way you see fit.

  int mfp_row       --  This variable provides your validation function with
                        the screen row the entry field is on.

  int mfp_col       --  This variable provides your validation function with
                        the screen column the entry field is on.

  int mfp_fg        --  This variable provides your validation function with
                        the foreground color of the entry field.

  int mfp_bg        --  This variable provides your validation function with
                        the background color of the entry field.



                                      13

                                                                        mfp
THE PROCEDURE LIST

    The second parameter that can be passed to the MFP function is a
    procedure list that sets up a relationship of keyboard keys to
    functions.

    The procedure is called when the defined key is pressed. When the
    procedure is finished MFP regains control from where it left off.

    The typedef PROC defines a structure that is used to define the
    link between key and function. A PROC variable is defined and a
    list of PROC variables is passed to the MFP function.

    The PROC variable needs the integer key value returned by inkey()
    and a pointer to the function.

    Any key that the inkey() function can detect is legal for use
    as a hot key.

    The following is an example of hot key definitions:

        void help( void );
        void popup_1( void );
        void popup_2( void );

        PROC  hotkey_1[] = { FN1, help };       /* F1 is for help       */
        PROC  hotkey_2[] = { FN2, popup_1 };    /* F2 is a popup menu   */
        PROC  hotkey_3[] = { FN3, popup_2 };    /* F3 is another popup  */

        PROC  *hotkeys[] = { hotkey_1, hotkey_2, hotkey_3, 0 };

    The PROC list "hotkeys" is an array of pointers to variables of type PROC.

    The order in which the hot keys are listed does not affect operation.

    The "hotkeys" variable would be passed as the second parameter in the
    mfp() function call. Any time F1, F2, or F3 were pressed when mfp() was
    executed the functions help(), popup_1(), or popup_2() would execute
    then return control to mfp().

    NOTE: The PROC list, like the MFP list, must be terminated with a
          zero.
















                                      14


MFP EXAMPLE LISTING                                                     mfp

   1:  #include <stdio.h>
   2:  #include <string.h>
   3:  #include <dos.h>
   4:  #include <conio.h>
   5:  #include <ctype.h>
   6:  #include <mfp.h>
   7:  
   8:  void drawscrn( char * );
   9:  void prompts( void );
  10:  void mess24( char *mess );
  11:  void help( void );
  12:  void inst( void );
  13:  
  14:  char                name[ 21 ];
  15:  short int           binarys     = 0;
  16:  int                 rel_lum     = 0;
  17:  long int            sfc_temp    = 0L;
  18:  unsigned int        abs_lum     = 0;
  19:  unsigned long int   age_yrs     = 0L;
  20:  float               magnitd     = 0.0;
  21:  double              distance    = 0.0;
  22:  long double         mass        = 0.0;
  23:  
  24:  MFP ln1[] = { name,"!!!!!!!!!!!!!!!!!!!!", 5,20,BLACK,WHITE,inst,0 };
  25:  MFP ln2[] = { &binarys,  "%2hd",     7,20,BLACK,WHITE,inst,0 };
  26:  MFP ln3[] = { &rel_lum,  "%6d",      9,20,BLACK,WHITE,inst,0 };
  27:  MFP ln4[] = { &abs_lum,  "%6u",     11,20,BLACK,WHITE,inst,0 };
  28:  MFP ln5[] = { &sfc_temp, "%9ld",    13,20,BLACK,WHITE,inst,0 };
  29:  MFP ln6[] = { &age_yrs,  "%9lu",    15,20,BLACK,WHITE,inst,0 };
  30:  MFP ln7[] = { &magnitd,  "%9.3f",   17,20,BLACK,WHITE,inst,0 };
  31:  MFP ln8[] = { &distance, "%13.3lf", 19,20,BLACK,WHITE,inst,0 };
  32:  MFP ln9[] = { &mass,     "%20.3Lf", 21,20,BLACK,WHITE,inst,0 };
  33:  
  34:  MFP *lst[] = { ln1, ln2, ln3, ln4, ln5, ln6, ln7, ln8, ln9, 0 };
  35:  
  36:  PROC p1[] = { FN1, help };
  37:  PROC p2[] = { FN2, fast };
  38:  
  39:  PROC *plist[] = { p1, p2, 0 };
  40:  
  41:  void main()
  42:  {
  43:      int yorn;
  44:      drawscrn("MFP Demonstration Program");
  45:      prompts();
  46:      do
  47:      {
  48:          mess24("Please enter above data...");
  49:          ed_list = lst;
  50:          mfp( lst, plist  );
  51:          mess24("[ OPTIONS ]  <E>dit, <S>ave, or <A>bort  (E/S/A) ");
  52:          do
  53:          {
  54:              yorn = inkey();
  55:          }
  56:          while( !yorn );
                                      15


MFP EXAMPLE LISTING (cont'd)                                            mfp

  57:          yorn = toupper( yorn );
  58:          if( yorn == 'S' )
  59:          {
  60:              mess24("Saving data...");
  61:          }
  62:      }
  63:      while( yorn == 'E' );
  64:      color( WHITE, BLACK );
  65:  }
  66:  
  67:  void drawscrn( char *header )
  68:  {
  69:      char buf[ 11 ];
  70:      int x;
  71:      color( WHITE, BLACK );
  72:      clrscr();
  73:      color( BLACK, WHITE );
  74:      wcls( 1,1, 2,80 );
  75:      color( WHITE, BLACK );
  76:      for( x = 3 ; x < 25 ; x++ )
  77:      {
  78:          cup( x,1 );
  79:          putch(186);
  80:          cup( x,48 );
  81:          putch(179);
  82:          cup( x,80 );
  83:          putch(186);
  84:      }
  85:      color( BLACK, WHITE );
  86:      wcls( 24,1, 24,80 );
  87:      cup( 1, 2 );
  88:      print( ldate( buf ) );
  89:      cup( 1,71 );
  90:      print( strtime( buf ) );
  91:      x = strlen( header );
  92:      cup( 2, (80-x)/2 );
  93:      print(header);
  94:      color( WHITE, BLACK );
  95:      wcls( 25,1, 25,80 );
  96:      cup( 25,2 );
  97:      print("F1 Help | F2 Jump | F3      | F4      | ");
  98:      print("F5      | F6      | F7      | F8      ");
  99:  }
 100:  
 101:  void prompts( void )
 102:  {
 103:      color( CYAN, BLACK );
 104:      cup( 5,4 );
 105:      print("Stellar Ident:");
 106:      cup( 7,4 );
 107:      print("  System Size:");
 108:      cup( 9,4);
 109:      print(" Relative Lux:");
 110:      cup( 11,4 );
 111:      print(" Absolute Lux:");

                                      16


MFP EXAMPLE LISTING (cont'd)                                            mfp

 112:      cup( 13,4 );
 113:      print(" Surface Temp:");
 114:      cup( 15,4 );
 115:      print("  Stellar Age:");
 116:      cup( 17,4 );
 117:      print("    Magnitude:");
 118:      cup( 19,4 );
 119:      print("  Light Years:");
 120:      cup( 21,4 );
 121:      print("         Mass:");
 122:      color( WHITE, BLACK );
 123:  }
 124:  
 125:  void mess24( char *mess )
 126:  {
 127:      color( BLACK, WHITE );
 128:      wcls( 24,2,24,76 );
 129:      cup( 24,2 );
 130:      print( mess );
 131:  }
 132:  
 133:  char *name_txt[] = {    "Please enter the name",
 134:                          "of the stellar system.",
 135:                          "",
 136:                          "The name can be any",
 137:                          "combination of letters",
 138:                          "or numbers up to twenty",
 139:                          "characters long.",
 140:                          0
 141:                      };
 142:  char *size_txt[] =  {   "Please enter the number",
 143:                          "of stellar mass bodies",
 144:                          "in this system.",
 145:                          "",
 146:                          "A binary system would",
 147:                          "have two stellar masses.",
 148:                          "",
 149:                          "A system like our sun's",
 150:                          "would have only one.",
 151:                          0
 152:                      };
 153:  char *lux_txt[] =   {   "Please enter the relative",
 154:                          "intensity of the stellar",
 155:                          "system in units of lux.",
 156:                          "",
 157:                          "This must be the relative",
 158:                          "value not the absolute.",
 159:                          "",
 160:                          "This value may be positive",
 161:                          "or negative with limits to",
 162:                          "+/- 32000.",
 163:                          "",
 164:                          "It also must be a whole",
 165:                          "number.",
 166:                          0
 167:                      };
                                      17


MFP EXAMPLE LISTING (cont'd)                                            mfp

 168:  char *alux_txt[] =  {   "Please enter the absolute",
 169:                          "intensity of the stellar",
 170:                          "system in units of lux.",
 171:                          "",
 172:                          "This must be the absolute",
 173:                          "value and not the relative.",
 174:                          "",
 175:                          "This value must be positive.",
 176:                          "Largest value cannot exceed",
 177:                          "65,535. It must also be a",
 178:                          "whole number.",
 179:                          0
 180:                      };
 181:  char *sftp_txt[] =  {   "Please enter the surface",
 182:                          "temparature in degrees",
 183:                          "Kelvin.",
 184:                          "",
 185:                          "The measured temparature",
 186:                          "must be in whole degrees",
 187:                          "and may be positive or",
 188:                          "negative.",
 189:                          "",
 190:                          "In the case of a multiple",
 191:                          "unit system, please enter",
 192:                          "the average temparature.",
 193:                          0
 194:                      };
 195:  char *age_txt[] =   {   "Please enter the age of",
 196:                          "the system in years.",
 197:                          "",
 198:                          "The age can be approximated",
 199:                          "by the apparent luminosity",
 200:                          "and the surface temp.",
 201:                          "",
 202:                          "The age cannot exceed 32",
 203:                          "billion years.",
 204:                          0
 205:                      };
 206:  char *magn_txt[] =  {   "Please enter the magnitude",
 207:                          "of the largest body in this",
 208:                          "system.",
 209:                          "",
 210:                          "The magnitude of this system",
 211:                          "can be entered as a floating",
 212:                          "point value.",
 213:                          0
 214:                      };
 215:  char *ltyr_txt[] =  {   "Please enter the distance",
 216:                          "from gravitaional center of",
 217:                          "our solar system to the",
 218:                          "gravitational center of",
 219:                          "this system.",
 220:                          "",

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
2024国产精品| 国产日本欧美一区二区| 91免费视频观看| 国产成人免费xxxxxxxx| 粉嫩aⅴ一区二区三区四区| 国产白丝精品91爽爽久久| 国产99久久久国产精品| av一本久道久久综合久久鬼色| 韩国中文字幕2020精品| 国产一区二三区| 福利一区福利二区| 色综合久久久久久久久久久| 欧美亚洲一区二区在线| 7777精品伊人久久久大香线蕉完整版 | 国产美女精品在线| 久久99久久久久| 国产美女在线精品| 国产一区二区三区黄视频| 成人午夜视频网站| 97超碰欧美中文字幕| 欧美日韩一区二区欧美激情| 91精品国产综合久久久久久漫画| 欧美成人福利视频| 中文字幕高清不卡| 亚瑟在线精品视频| 国产九色sp调教91| 91色乱码一区二区三区| 欧美一区二区视频网站| 久久精品水蜜桃av综合天堂| 亚洲欧洲在线观看av| 午夜精品久久久| 国产精品99久久久| 欧美日韩一级二级| 欧美激情在线免费观看| 亚洲国产欧美日韩另类综合| 国产黄色成人av| 欧美日韩免费观看一区三区| 久久你懂得1024| 亚洲在线观看免费视频| 国产成人精品免费在线| 欧美电影在线免费观看| 中文字幕在线不卡| 久久精品国产**网站演员| 色天天综合色天天久久| 欧美精品一区二区三区视频| 亚洲最新视频在线观看| 国产成人h网站| 91精品国产福利| 一区二区三区在线视频观看| 国产成人亚洲综合a∨婷婷| 欧美亚洲禁片免费| 18欧美亚洲精品| 韩国三级在线一区| 欧美一级免费大片| 亚洲午夜免费电影| 色哟哟亚洲精品| 国产精品久久777777| 国产精品影视网| 欧美成人乱码一区二区三区| 亚洲成人777| 欧美又粗又大又爽| 一区二区三区四区视频精品免费| 国产成人综合视频| 欧美精品一区二| 精品一区二区三区的国产在线播放| 日本韩国欧美在线| 一区二区三区四区在线| www.亚洲国产| 综合av第一页| 97精品电影院| 亚洲夂夂婷婷色拍ww47| 日本韩国精品一区二区在线观看| 国产精品每日更新| 国产suv精品一区二区883| 国产日韩欧美一区二区三区综合| 老司机精品视频一区二区三区| 91精选在线观看| 日本成人中文字幕在线视频| 欧美一区二区三区日韩| 免费欧美在线视频| 久久综合久久99| 国产一区二区三区免费在线观看| 精品日韩在线一区| 国产成人一区在线| 国产精品久久看| 在线亚洲一区二区| 午夜久久福利影院| 精品国产在天天线2019| 国产福利精品一区| 亚洲欧美另类小说| 欧美日本在线观看| 九一九一国产精品| 国产精品美女久久久久aⅴ| 99国产精品一区| 丝袜美腿一区二区三区| 精品成人在线观看| 成人美女在线观看| 亚洲成在人线免费| 日韩欧美国产一区二区三区| 国产黄色精品视频| 亚洲一区二区三区四区五区黄| 欧美日韩视频在线观看一区二区三区 | 奇米777欧美一区二区| 欧美videos大乳护士334| 国产成人免费视频精品含羞草妖精| 精品av久久707| 91麻豆免费看片| 老色鬼精品视频在线观看播放| 国产欧美一区二区三区鸳鸯浴| 91成人在线精品| 激情小说亚洲一区| 亚洲午夜国产一区99re久久| 精品国精品自拍自在线| 色狠狠桃花综合| 国内精品自线一区二区三区视频| 亚洲精选免费视频| 精品毛片乱码1区2区3区| 色综合久久久久久久久久久| 久久成人精品无人区| 一区二区三区在线观看视频 | 高清在线成人网| 日韩精品久久久久久| 亚洲三级在线免费| 久久精品夜色噜噜亚洲aⅴ| 欧美三级一区二区| 99久久精品免费看| 国产美女精品人人做人人爽| 亚瑟在线精品视频| 亚洲欧美一区二区三区极速播放 | 91原创在线视频| 国产经典欧美精品| 久久99国产精品免费网站| 亚洲最大的成人av| 亚洲欧美一区二区三区极速播放 | 在线一区二区三区做爰视频网站| 国产在线一区观看| 日本伊人色综合网| 亚洲1区2区3区4区| 亚洲激情图片一区| 一色屋精品亚洲香蕉网站| 国产婷婷色一区二区三区| 精品日韩99亚洲| 欧美第一区第二区| 欧美一区二区三区的| 欧美日韩免费观看一区二区三区| 99久久国产综合精品色伊| 成人免费观看av| 丁香婷婷综合色啪| 成人免费毛片片v| 成人性生交大合| www.视频一区| 一本色道a无线码一区v| 日本乱码高清不卡字幕| 色婷婷综合久色| 欧美日韩精品一区二区三区蜜桃| 欧美伊人久久久久久久久影院| 色偷偷88欧美精品久久久| 在线看日韩精品电影| 欧美性猛交xxxx黑人交| 欧美精品777| 精品日韩在线观看| 国产日韩欧美高清| 国产精品久久久一本精品| 亚洲欧美另类小说| 午夜欧美视频在线观看| 美女视频网站久久| 国产乱码一区二区三区| 成人免费视频视频在线观看免费| 成人成人成人在线视频| 欧美丝袜丝交足nylons| 欧美精品乱人伦久久久久久| 欧美r级电影在线观看| 国产视频视频一区| 一区二区三区在线观看动漫| 日韩综合在线视频| 国产在线精品国自产拍免费| av电影在线观看完整版一区二区| 欧美综合天天夜夜久久| 日韩欧美成人一区| 中文字幕一区免费在线观看| 亚洲一区免费视频| 国产自产高清不卡| 色天天综合久久久久综合片| 日韩欧美电影一区| 综合激情网...| 蜜臀av一区二区在线观看| 成人小视频免费观看| 欧美日韩亚洲综合在线| 久久久99久久| 亚洲成av人综合在线观看| 国产久卡久卡久卡久卡视频精品| 91福利资源站| www久久久久| 亚洲第一综合色| 成人一级片在线观看| 日韩一区二区三区四区| 国产精品天天看| 久久99久久99| 欧美三区在线视频| 中文字幕日韩av资源站|