Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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.
......


Ïà¹ØÎĵµ£º

CÖ¸ÕëÖ®ÃÀÒ»£ºÉñÆæµÄº¯Êý

void mystery(int n)
{
 n += 5;
 n /= 10;
 printf(" :%s\n","***********" + 10 -n);
}
µ±Ò»¸ö×Ö·û´®³£Á¿Î»ÓÚÒ»¸ö±í´ïʽÖÐʱ£¬ËüµÄÖµÊÇÒ»¸öÖ¸Õë³£Á¿¡£±àÒëÆ÷°ÑÕâЩָ¶¨×Ö·ûµÄÒ»·Ý¿½±´´æ´¢ÔÚÄÚ´æµÄij¸öλÖ㬲¢´æ´¢Ò»¸öÖ¸ÏòµÚ1¸ö×Ö·ûµÄÖ¸Õë¡£µ«ÊÇ£¬µ±Êý×éÃûÓÃÓÚ±í´ïʽÖÐʱ£¬ËûÃǵÄÖµÒ²ÊÇÒ»¸öÖ¸Õë³£Á¿ ......

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 + +¿ª·¢ÈËÔ±ËùÃæÁٵĹ㷺µÄһЩÎÊÌ ......

C static

  CÓïÑÔ³ÌÐò¿ÉÒÔ¿´³ÉÓÉһϵÁÐÍⲿ¶ÔÏ󹹳ɣ¬ÕâЩÍⲿ¶ÔÏó¿ÉÄÜÊDZäÁ¿»òº¯Êý¡£¶øÄÚ²¿±äÁ¿ÊÇÖ¸¶¨ÒåÔÚº¯ÊýÄÚ²¿µÄº¯Êý²ÎÊý¼°±äÁ¿¡£Íⲿ±äÁ¿¶¨ÒåÔÚº¯ÊýÖ®Í⣬Òò´Ë¿ÉÒÔÔÚÐí¶àº¯ÊýÖÐʹÓá£ÓÉÓÚCÓïÑÔ²»ÔÊÐíÔÚÒ»¸öº¯ÊýÖж¨ÒåÆäËüº¯Êý£¬Òò´Ëº¯Êý±¾ÉíÖ»ÄÜÊÇ“ÍⲿµÄ”¡£
      ÓÉÓÚ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ