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

c/c++ÀàÐÍ

1.·ÖÀà
 ÄÚ²¿ÀàÐÍ ºÍÓû§¶¨ÒåÀàÐÍ
2.
 ÕûÐΣºbool ,×Ö·ûÐÍ£¬ÕûÐÎ
   true  1                   flase 0
   ·ÇÁã true                Áã  flase
   ·Ç¿ÕÖ¸Õë true          ¿ÕÖ¸Õë flase
char ,wchar_t
(unsigned  signed)
int   short int  long int   (unsigned signed)
 3.
enum ÀàÐÍ (enum Êǹؼü×Ö £¬Èçͬ class )
  enum {}
  enum flag{a=1,b=100};
  flag f1=flag(101);//ÏÔʾת»»ÎªÃ¶¾Ù
ö¾Ù·ûµÄ·¶Î§ ¡¾0--2^k-1¡¿
                    ¡¾-2^k--2^k-1¡¿
  sizeof (flag)==sizeof(int)==sizeof(bool);
  ö¾ÙÀàÐÍ¿ÉÒÔת»»Îª ÕûÐÎ
  3.ÉùÃ÷ ºÍ¶¨ÒåµÄÇø±ð
  extern int error_code;
  int get_age();
  int error_code=3;
 int get_age£¨£©
{
}
ÃèÊö·û »ù´¡ÀàÐÍ ÉùÃ÷·ûºÅ ³õʼʽ
ÉùÃ÷·û=Ãû×Ö+ÉùÃ÷ÔËËã·û
*
[]
()
&
* const
4.×÷ÓÃÓò
º¯Êý£¬À࣬Ãû×ֿռ䣬ȫ¾Ö
È«¾Ö ¾Ö²¿¾²Ì¬ Ãû×Ö¿Õ¼ä ÒÔ0 ³õʼ»¯
¾Ö²¿±äÁ¿ ¶Ñ±äÁ¿
¾²Ì¬¶ÔÏó£ºÈ«¾Ö ¾Ö²¿¾²Ì¬ Ãû×Ö¿Õ¼ä
×Ô¶¯¶ÔÏ󣺾ֲ¿±äÁ¿
Ö±½Ó¿ØÖƶÔÏ󣺶ÑÉϵıäÁ¿
5.×óÖµ
int a=3;
&a ÊǸöÓÒÖµ
int &b=a//ÒýÓÃÒ»¸ö×óÖµ
const int &c=a//
const int &d=4;//const ÒýÓà ¿ÉÒÔÊǸöÓÒÖµ
const int * a1=0;
 int const * const &  b=&a1;
const int*
int*
const int &


Ïà¹ØÎĵµ£º

memcached Óëc/c++ÔËÓÃ

ÐÞ¸Ämakefile£¬ÔÚLIBSÀïÃæ¼ÓÉÏ-lmemcached£¬±ÈÈçÔ­À´ gcc test.c£¬ÏÖÔÚ gcc test.c -lmemcached¡£Õâ¸ö¿â¾ÍÊÇlibmemcachedÌṩµÄ¡£
È»ºóÌí¼Ó#include<libmemcached/memcached.h>£¬Õâ¸öÎļþÒ²ÊÇlibmemcachedÌṩµÄ¡£
Ö÷º¯ÊýÀïÃæÐèÒªÌí¼Ó£º
    memcached_st *memc;
    uint32_t&nbs ......

C/C++ÖÐtypedefµÄÓ÷¨£¬¸æËßÄã²»Ò»ÑùµÄtypedef


<!--
/* Font Definitions */
@font-face
{font-family:ËÎÌå;
panose-1:2 1 6 0 3 1 1 1 1 1;
mso-font-alt:SimSun;
mso-font-charset:134;
mso-generic-font-family:auto;
mso-font-pitch:variable;
mso-font-signature:3 135135232 16 0 262145 0;}
@font-face
{font-family:"\@ËÎÌå" ......

C++ ²Ù×÷XMLµÄÍêÕûÀý×Ó——MSXMLƪ

д±¾ÎĵÄÄ¿µÄÊÇΪÁË·½±ã´ó¼ÒÁ˽âC++ MSXML²Ù×÷·½·¨¡£
µ±È»£¬C++ÖжÔMSXMLµÄµ÷ÓÃÓжàÖÖ£¬±¾ÎIJÉÓõķ½·¨ÊÇÍêÈ«²ÎÕÕMSXML SDKÌṩµÄÎĵµ½øÐвÙ×÷¡£
Èç¹ûÓÐʲô´íÎ󣬻¶Ó­Ö¸Õý¡£
´úÂë¿ò¼ÜÊÇ»ùÓÚvs2008 MFC ¶Ô»°¿ò³ÌÐò£¨UNICODE£©¡£¶Ô»°¿ò³ÌÐòÐèÒª¶ÁÕß×Ô¼º´´½¨¡£
#include <msxml6.h>
#include <comutil.h>
# ......

C/C++ÏÂASCIIÓëEBCDICÂëÖ®¼äµÄÇáËÉת»»

EBCDIC (Extended Binary Coded Decimal Interchange Code) À©Ôö¶þ½øʽʮ½ø½»»»Â룬ΪIBMÓÚ1963Ä꣭1964Äê¼äÍƳöµÄ×Ö·û±àÂë±í£¬¸ù¾ÝÔçÆÚ´ò¿×»úʽµÄ¶þ½ø»¯Ê®½øÊý(BCD, Bindary Coded Decimal)ÅÅÁжø³É¡£ÊÇIBMÃÔ¶û¼¶ÒÔÉϵçÄԵıê×¼Âë¡£
ASCII£¨American Standard Code for Information Interchange£¬ÃÀ¹úÐÅÏ¢»¥»»±ê×¼´úÂë£©Ê ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ