Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÇóMACËã·¨ c/c++´úÂë

Ëã·¨Á÷³Ì
±¾Îĸù¾Ý¡¶ÖйúÒøÁªÖ±ÁªPOSÖն˹淶¡·µÄ²ûÊö£¬ÓÃCÓïÑÔ±à³ÌʵÏÖ£¬¸ÃËã·¨ÔÚʵ¼ÊµÄÉÌÒµPOSÖÕ¶ËÖÐʹÓá£POSÖն˲ÉÓãţãµļÓÃÜ·½Ê½£¬¼òÊöÈçÏ£º
a) ½«Óû·¢Ë͸øPOSÖÐÐĵÄÏûÏ¢ÖУ¬´ÓÏûÏ¢ÀàÐÍ£¨MTI£©µ½63ÓòÖ®¼äµÄ²¿·Ö¹¹³ÉMAC
ELEMEMENT BLOCK £¨MAB£©¡£
b) ¶ÔMAB£¬°´Ã¿8¸ö×Ö½Ú×öÒì»ò£¨²»¹ÜÐÅÏ¢ÖеÄ×Ö·û¸ñʽ£©£¬Èç¹û×îºó²»Âú8¸ö×Ö
½Ú£¬ÔòÌí¼Ó¡°0X00¡±¡£
ʾÀý £º
MAB = M1 M2 M3 M4
ÆäÖУº
M1 = MS11 MS12 MS13 MS14 MS15 MS16 MS17 MS18
M2 = MS21 MS22 MS23 MS24 MS25 MS26 MS27 MS28
M3 = MS31 MS32 MS33 MS34 MS35 MS36 MS37 MS38
M4 = MS41 MS42 MS43 MS44 MS45 MS46 MS47 MS48

°´ÈçϹæÔò½øÐÐÒì»òÔËË㣺
MS11 MS12 MS13 MS14 MS15 MS16 MS17 MS18
XOR£© MS21 MS22 MS23 MS24 MS25 MS26 MS27 MS28
---------------------------------------------------
TEMP BLOCK1 = TM11 TM12 TM13 TM14 TM15 TM16 TM17 TM18

È»ºó£¬½øÐÐÏÂÒ»²½µÄÔËË㣺
TM11 TM12 TM13 TM14 TM15 TM16 TM17 TM18
XOR£© MS31 MS32 MS33 MS34 MS35 MS36 MS37 MS38
---------------------------------------------------
TEMP BLOCK2 = TM21 TM22 TM23 TM24 TM25 TM26 TM27 TM28

ÔÙ½øÐÐÏÂÒ»²½µÄÔËË㣺
TM21 TM22 TM23 TM24 TM25 TM26 TM27 TM28
XOR£© MS41 MS42 MS43 MS44 MS45 MS46 MS47 MS48
---------------------------------------------------
RESULT BLOCK = TM31 TM32 TM33 TM34 TM35 TM36 TM37 TM38

c) ½«Òì»òÔËËãºóµÄ×îºó8¸ö×Ö½Ú£¨RESULT BLOCK£©×ª»»³É16 ¸öHEXDECIMAL£º
RES


Ïà¹ØÎÊ´ð£º

pro*c ÀïÔõô½«select µÄ·µ»ØÄÚÈݸ³Öµ¸ø±äÁ¿ÄÇ£¿

pro*c ÀïÔõô½«select µÄ·µ»ØÄÚÈݸ³Öµ¸ø±äÁ¿ÄÇ£¿


EXEC SQL BEGIN DECLARE SECTION;
  char CALLNO[30];
EXEC SQL END DECLARE SECTION;

 
  EXEC SQL SELECT CALLNO ......

C ³ÌÐòÎÊÌâ

µÚÒ»Ì⣺
  struct struct_A{
  int a;
  char b;
  int c;
  short d;
  };
  struct_A *p = NULL;
  sizeof(p)µÈÓÚ¶àÉÙ£¿

µÚ¶þÌ⣺ ......

30·ÖÂò±¾CÊÓƵµÄµç×ÓÊé

    ½üÈÕÐÖµÜÎÒÔÚÍøÉÏÏÂÁËÕã½­´óѧԶ³Ì½ÌÓýCµÄÊÓƵ,ÏàÐŲ»ÉÙÈËÒ²¶¼¿´¹ý,ÑÕêÍÖ÷½²µÄ,¸öÈ˾õµÃÑÕêͽ²µÄ·Ç³£×Ðϸ͸³¹,ÊʺÏ


ÐÂÊÖ¿´,Ö»ÊÇȱÉÙÅäÌ×µÄÊé,ËäÈ»ÔÚµ±µ±ÍøÒ²¿´µ½Õâ±¾Êé,Ò²²»ËãºÜ¹ó23RMB,µ« ......

c ÓïÑÔ ¼ì²éÀ¨ºÅÆ¥Åä ²»ÄÜÔËÐÐ £¿£¿£¿£¿

¸÷λÇë°ïÎÒ¿´Ò»ÏÂÕâ¸ö¶«Î÷£¬ ÎÒÒªÔÚcÓïÑÔÖÐʵÏÖÀ¨ºÅÆ¥Å䣬Éè¼Æ˼·£º°Ñ´ÓÁ´Õ»ÖÐɨÃèµÃµ½µÄ'}',¡®]',')'ÏÈ´æ´¢µ½¶¯Ì¬ÉêÇëµÄÄÚ´æ¿Õ¼äÖУ¬µ±É¨Ãèµ½¡®{','[','('ʱ ÔÚµ¯³öÏÈÇ°´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ