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

³¤ÆÚÊÕ¼¯ C/C++ FAQ

дÔÚÇ°Ã棺
¡¡¡¡ÂÛ̳Àï×ÜÓÐÄÇôһЩÎÊÌâÊdz¤Ê¢²»Ë¥µÄ£¬½ñÌìÕâ¸öÎÊ£¬Ã÷ÌìÄǸöÎÊ£¬µ½ÀúÊ·Ìû×ÓÀïÒ»ËÑ¿ÉÒÔ×¥³öÀ´Ò»´ó°Ñ¡£ÓÐʱºòÕⶼÁîÎÒ»³ÒÉÊDz»ÊÇÎÒÃǵĽÌÓýÌåÖÆ´æÔÚÎÊÌâ……
¡¡¡¡ÓÚÊÇÎÒ¿ªÁËÕâƪÎÄÕ£¬ËѼ¯ÎÒ¼ûµ½µÄ³¤Éú²»ÀÏÖ®Ìû£¬Ï£Íû¿ÉÒÔÆ𵽲ο¼¼ÛÖµ¡£
¡¡¡¡ÕâÀïʹÓõıàÒë»·¾³Îª gcc/g++ 4.3.3 for ubuntu 9.04
Êý×éÃûºÍÖ¸ÕëµÄÎÊÌâ
¡¡¡¡Õâ¾ø¶ÔÊǽ̲ÄÎÊÌ⣡ÏÖÔÚ¹úÄÚÓÐÌ«¶à½Ì²Ä¹àÊä“Êý×éÃûÏ൱ÓÚÖ¸Õ딵ĸÅÄîÁË£¡ÓÚÊÇ·×·×ÓÐÈË°ÑÊý×éÃûºÍÖ¸ÕëµÈͬÆðÀ´£¬ÈÏΪÊý×éÃûÆäʵ¾ÍÊÇÒ»¸öÖ¸Õë¡£¾Ã¶ø¾ÃÖ®£¬Ðí¶àÐÂÊÖÒѾ­²»ÖªµÀ»¹ÓÐÒ»ÖÖÊý¾ÝÀàÐͽÐ×ö“Êý×é”ÁË¡£
¡¡¡¡¶ÔÓÚÕâ¸öÎÊÌâÊ×ÏÈÓ¦¸Ã´Ó¸ÅÄîÉϳÎÇ壬¼á¶¨²»ÒƵذÑÊý×éºÍÖ¸ÕëÕâÁ½ÖÖÀàÐÍ»®Çå½çÏߣ¬ÈÏʶµ½ËüÃÇËäÈ»ÓÐǧ˿ÍòÂƵÄÁªÏµ£¬µ«ÆäʵÊÇÁ½ÖÖ²»Í¬µÄÊý¾ÝÀàÐÍ¡£¾ÍÈçÏÂÃæËù¿´µ½µÄ£º
#include <iostream>
#include <typeinfo>
using namespace std;
#define gettype(id) (cout<<typeid(id).name()<<endl)
int a;
char arrChar[10];
char str1[] = "string";
char str2[] = "string?";
char *p1 = str1;
char *p2 = str2;
int main()
{
gettype(a);
gettype(arrChar);
gettype(str1);
gettype(str2);
gettype(p1);
gettype(p2);
return 0;
}

Êä³öΪ£º
A10_c
A7_c
A8_c
Pc
Pc
¡¡¡¡¿É¼û£¬arrChar¡¢str1¡¢str2 µÄÀàÐÍ·Ö±ðΪ char [10]¡¢char [7]¡¢char [8]£¬¼´Ê¹ËüÃǶ¼ÊÇÊý×飬ÓÉÓÚ´óС²»Í¬£¬Ò²±»¿´×÷ÊÇÈýÖÖ²»Í¬µÄÀàÐÍ£»¶ø p1¡¢p2 µÄÀàÐÍÔòÏàͬ£¬Îª char*¡£
¡¡¡¡ÄÇô£¬´«ËµµÄ“Êý×éÃûÏ൱ÓÚÖ¸Õë”ÓÖÊÇÔõôһ»ØÊÂÄØ£¿ÇÒ¿´ C99 ±ê×¼ÖÐÓйØÐðÊö£º
6.2.5 Types
......
    Array types are characterized by their element type and by the number of elements in the array.
......


Ïà¹ØÎĵµ£º

LINUX C++ REGEXP ÕýÔò±í´ïʽ

ÔÚPOSIXÖУ¬±ãÓÐ×ÅÖ§³ÖÕýÔò±í´ïʽµÄϵͳº¯Êý¡£GNU/LinuxÓÐÁ½Ì׿â¿ÉÓÃÓÚÕýÔò±í´ïʽ±à³Ì£ºPOSIX¿âºÍPCRE¿â¡£Ç°Õß²»ÐèÒªµ¥¶À°²×°£¬Ò»°ãÐèÇó»¹ÊÇÄÜÂú×ãµÄ£¬ËÙ¶ÈÉÔÂýЩ¡£ºóÕßÊǾøºÊ¢ÃûµÄPerlÕýÔò±í´ïʽ¿â£¬¹¦ÄÜÇ¿´ó£¬Æ¥ÅäËٶȿ죬²»¹ý¿ÉÄÜÐèÒªµ¥¶À°²×°¡£
int regcomp (regex_t *compiled, const char *pattern, int cflags)
& ......

Linux c++






Linux/UNIX C++¸ß¼¶Åàѵ---Ô¶³Ì°à
http://www.xuanyuan-soft.cn/index.php?option=com_content&view=article&id=84&Itemid=85
¿Î³Ì¸ÅÒª
 
ÅàÑøÄ¿±ê
£ºLinux/UNIX C++Èí¼þ¹¤³Ìʦ
רעLinux/UNIX·þÎñÆ÷¶ËµÄÈí¼þ¿ª·¢£¨ºǫ́¿ª·¢£©£¬ÅàÑøÆóÒµËùÐèµÄרҵLinux/UNIX C ......

linux³£ÓÃcÍ·Îļþ

linux³£ÓÃÍ·ÎļþÈçÏ£º
POSIX±ê×¼¶¨ÒåµÄÍ·Îļþ
<dirent.h>       
Ŀ¼Ïî
<fcntl.h>         Îļþ¿ØÖÆ
<fnmatch.h>    ÎļþÃûÆ¥ÅäÀàÐÍ
<glob.h>   
·¾¶ÃûģʽƥÅäÀàÐÍ
< ......

̽Ë÷еÄC + +ºÍMFCÔÚVisual Studio 2010¹¦ÄÜ

̽Ë÷еÄC + +ºÍMFCÔÚVisual Studio 2010¹¦ÄÜ
Sumit Kumar
2010ÄêÁгöµÄVisual Studio C + +¿ª·¢µÄ¾Þ´óºÃ´¦¡£´Ó¹ÍÓÃÄÜÁ¦ÌṩÓÉWindows 7´óÁ¿´úÂëµÄ»ù´¡¹¤×÷£¬ÒÔÔöÇ¿Éú²úÁ¦ÌØÕ÷µÄÐÂÌص㣬ÓÐһЩеĶ«Î÷£¬Ìá¸ßÁ˼¸ºõËùÓеÄC + +¿ª·¢ÈËÔ±¡£
ÔÚÕâƪÎÄÕÂÖУ¬ÎÒ½«½âÊÍ΢ÈíÒѾ­½â¾öÁËÈçºÎÓÃC + +¿ª·¢ÈËÔ±ËùÃæÁٵĹ㷺µÄһЩÎÊÌ ......

extern "C"(zz)


 ´ÓijλÍøÓѵIJ©¿Í¿´µ½¹ØÓÚextern "C"Ó÷¨µÄÎÄÕ£¬½²µÃ·Ç³£Í¸³¹£¬ÓÚÊǾÍÕª³­ÁËÎÒ֮ǰ²»ÉõÁ˽âµÄ²¿·Ö×ö¸öbackup¡£
Ò»¡¢´ÓCÓëC++±àÒëÁ¬½Ó·½Ê½ÉîÈëÀí½âextern "C"
<1>.CºÍC++¶Ôº¯ÊýµÄ´¦Àí·½Ê½ÊDz»Í¬µÄ.±»extern "C"ÐÞÊεıäÁ¿ºÍº¯ÊýÊÇ°´ÕÕCÓïÑÔ·½Ê½±àÒëºÍÁ¬½ÓµÄ.extern "C"ÓÃÓÚʵÏÖC++ÓëC¼°ÆäËüÓïÑԵĻìºÏ±à³Ì¡ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ