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

C³ÌÐòÎÊÌâ

ÓÐÕâÑùÁ½¸öÎÊÌ⣬ϣÍû¸ßÊÖÖ¸µã£º
µÚÒ»£º
struct struct_A{
int a;
char b;
int c;
short d;
}
  struct struct_B{
  int a;
  char b;
  short c;
  int d;
  }
struct_A a;
struct _B b;
ÎÊ£ºsizeof(struct_A a) = ?
sizeof(struct_A b) = ?
´ð°¸£ºsizeof(a) Ϊ16£¬sizeof(struct_A b)Ϊ12
ΪʲôÊÇ 16 ºÍ 12 ÄØ£¿

µÚ¶þ£º
fnxxxx_max(char str[])
{
  putchar str[0];
  str++; //(1)
  printf(¡°%s¡±,str);
}
  main()
  {
    char str[20]={¡°ABCDEFG¡±};
    fnxxxx_max(str);
    str++; //(2)
    printf(¡°%s¡±,str);
}
ÎÊ£ºÓï¾ä£¨1£©ºÍÓï¾ä£¨2£©ÊÇ·ñ³ÉÁ¢£¿
´ð°¸£ºÓï¾ä£¨1£©³ÉÁ¢£¬Óï¾ä£¨2£©²»³ÉÁ¢
Óï¾ä£¨1£©ºÍ£¨2£©µÄstrÇø±ðÔÚÄÄÀ
µÚÒ»¸öÎÊÌâÄã²éÏ¡°×Ö½Ú¶ÔÆ롱

ÎÊÌâ1:ÄÚ´æ²¹Æë

ÎÊÌâ2£ºÖ¸ÕëºÍÍË»¯ÎªÖ¸ÕëµÄÊý×éÃû£¬Ö¸Õë¿ÉÒÔÂÒÖ¸£¬Êý×鵱Ȼ²»ÐУ¬ÍË»¯ÁËÒ²²»ÐÐ

Èç¹ûÒ»°ã¶¼ÊÇ4×Ö½Ú¶ÔÆëµÄ£¬ÄÇ¡°sizeof(struct_A b)Ϊ12 ¡±ÎªÊ²Ã´ÊÇ12 ¶ø²»ÊÇ16ÄØ£¿

ÒýÓÃ
Èç¹ûÒ»°ã¶¼ÊÇ4×Ö½Ú¶ÔÆëµÄ£¬ÄÇ¡°sizeof(struct_A b)Ϊ12 ¡±ÎªÊ²Ã´ÊÇ12 ¶ø²»ÊÇ16ÄØ£¿

¶ÔÆë²»Ò»¶¨ÊÇÿ¸ö³ÉÔ±ÒªÕ¼Ò»ÑùµÄ¿Õ¼ä£¬¶øÊÇÒª·½±ãÑ°Ö·£¬¾ßÌå¹æÔòÀÏʵ˵¼ÇµÃ²»ÊǺÜÇå³þ£¬Â¥Ö÷¿ÉgoogleÒ»ÏÂ

ÎÊÌâ1
Ê×ÏÈÄãÒªÖªµÀ£¬½á¹¹ÌåÊÇ°´


Ïà¹ØÎÊ´ð£º

Ϊʲôxml²»ÄÜÏÔʾ°¢À­²®ÎÄ - C/C++ / C++ ÓïÑÔ

ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À­²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À­²®ÎĵÄ×Ö¿âÄãÓÐô£¿

ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......

c/sºÍb/sÖ®¼äÔõôͨѶ. - Java / Web ¿ª·¢

ÔھƵê¹ÜÀíϵͳÖÐ,ÓÐÒ»¸ö¶ÔÄÚµÄϵͳ,¹©Ç°Ì¨·þÎñÔ±ºÍ¾­ÀíʹÓÃ
»¹ÓÐÒ»¸ö¾ÍÊǶÔÍâ,Èÿͻ§¿ÉÒÔÔÚÍøÉÏÔ¤¶©·¿¼ä,
ËüÃÇÖ®¼äÊÇÔõôͨѶµÄ.?µ±ÎÒÌá½»Ô¤¶©·¿¼äÐÅÏ¢µÄʱºò,
ÔÚ¶ÔÄÚµÄϵͳÖÐ,ÈçºÎÖªµÀÎÒÒѾ­Ìá½»ÁËÐÅÏ¢¹ýÈ¥.Ê¹Ç ......

Çë´ó¼ÒÖ¸µãÒ»ÏÂC/S½á¹¹µÄ·ÖÒ³Á÷³Ì - .NET¼¼Êõ / C#

´ó¼ÒºÃ£¬ÎÒÊÇÐÂÊÖ£¬¸Õ¿ªÊ¼½Ó´¥C/S½á¹¹µÄ³ÌÐò£¬ÏëҪʵÏÖÒ»¸ö·ÖÒ³¹¦ÄÜ£¬´ó¼ÒÓÐûÓкõãµÄ·ÖÒ³¿Ø¼þ»òÕß³ÌÐòÖ®ÀàµÄ£¬µ±È»Ô´³ÌÐò¸üºÃ£¬·ñÔò˵˵Á÷³ÌÒ²¿ÉÒÔ£¬Ð¡Ãü±°¡£¬ÔÚÏߵȡ£¡£¡£¡£
´ó¼Ò°ï°ï棬ллÁË£¬¼±¡£¡£¡£

Ä ......

C# SQL µÄUPDATETEXT ÎÊÌâ - .NET¼¼Êõ / C#

A±í ÓÐÁ½¸ö×ֶΠ
  id ΨһÊý×ÖÓò
  InfoTxt text ÀàÐÍ
 ÎÒÏÖÔÚÒª°Ñ id ²»ÊÇ14 µÄËùÓÐ InfoTxt×ֶΠÎı¾ºóÃæ ¶¼¼ÓÉÏ 'aaa' 
°´ÏÂÃæÖ´ÐÐÏÂÀ´ Ö»Óбí×îºóÒ»ÐмÓÉÏÁË 'aaa' ......

ÈçºÎѧºÃC°¡ - C/C++ / CÓïÑÔ

ÎÒÃǵÄCÓïÑԿζ¼½áÁË¡£¸Ð¾õÀÏʦºÃÏñʲô¶¼Ã»½²ËƵġ£
ÒÔºó¾Í²»»á¿ª¿ÎÁË¡£ÎÒ»¹Ïë¼ÌÐøѧC£¬ÒªÔõôѧ²Å¸ßЧÇÒÇáËÉÄØ£¿
C¶ÔÊýѧҪÇóºÜ¸ßÂð£¿ÊýѧÀÏʦ½²¿Î×ÜÊÇ˵£º£º¡°Õâ¸ö¹«Ê½¶ÔÄãÃǼÆËã»úרҵµÄºÜÖØÒªµÄ£¡¡±¡£¿ÉÊÇÎÒà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ