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

CºÍÖ¸Õëѧϰ±Ê¼Ç£¨1£©

       1¡¢ ¾­³£¿´¼ûreturn EXIT_SUCCESS»òreturn EXIT_FAILURE£¬µ«¶¼²»ÖªÕâÁ½¸öÀ´×Ժ䦣¬ÏÖÔÚ²ÅÖªÔ­À´stdlib.h¶¨ÒåÁËEXIT_SUCCESSºÍEXIT_FAILURE·ûºÅ¡£
ÔÚstdlib.hÍ·ÎļþÀ
#define EXIT_SUCCESS    0
#define EXIT_FAILURE    1
       2¡¢ÔÚCÓïÑÔÖУ¬Êý×é²ÎÊýÊÇÒÔÒýÓÃ(reference)ÐÎʽ´«µÝµÄ£¬Ò²¾ÍÊÇ´«Ö·µ÷Ó㬶ø±êÁ¿ºÍ³£Á¿ÔòÊÇ°´Öµ(value)´«µÝ¡£ÔÚº¯ÊýÖжԱêÁ¿²ÎÊýµÄÈκÎÐ޸Ķ¼»áÔÚº¯Êý·µ»Øʱ¶ªÊ§£¬Òò´Ë£¬±»µ÷Óú¯ÊýÎÞ·¨Ð޸ĵ÷Óú¯ÊýÒÔ´«ÖµÐÎʽ´«µÝ¸øËüµÄ²ÎÊý¡£È»¶ø£¬µ±±»µ÷Óú¯ÊýÐÞ¸ÄÊý×é²ÎÊýµÄÆäÖÐÒ»¸öÔªËØʱ£¬µ÷Óú¯ÊýËù´«µÝµÄÊý×é¾Í»á±»Êµ¼ÊµØÐ޸ġ£
      ÊÂʵÉÏ£¬¹ØÓÚCº¯ÊýµÄ²ÎÊý´«µÝ¹æÔò¿ÉÒÔ±íÊöÈçÏ£º
      ËùÓд«µÝ¸øº¯ÊýµÄ²ÎÊý¶¼ÊÇ°´Öµ´«µÝµÄ¡£
      µ«ÊÇ£¬µ±Êý×éÃû×÷Ϊ²ÎÊýʱ¾Í»á²úÉú°´ÒýÓô«µÝµÄЧ¹û£¬¹æÔòºÍÏÖʵÐÐΪ֮¼äËƺõ´æÔÚÃ÷ÏÔµÄì¶ÜÖ®´¦£¬´Ë´¦ÔÝÇÒ²»×ö½âÊÍ¡£
£¨Î´Íê´ýÐø£©


Ïà¹ØÎĵµ£º

linux ºÜ²»´íϵÄC/C++¿ª·¢¿ª·¢»·¾³ mono

      ½ñÌì×°ºÃÁËmonodevelop£¬±¾À´ÊÇÏëÓÃÀ´C#µÄ£¬¼ûËûÒ²Ö§³ÖC/C++¿ª·¢£¬ÓÚÊÇÊÔÁËһϣ¬¸Ð¾õºÜ²»´í£¬ÖÕÓÚÕÒµ½ÁËlinuxÏÂÒ»¸ö±È½ÏÂúÒâµÄC++¿ª·¢»·¾³¡£
      ÒÔǰдC++¶¼ÊÇÔÚEclipseÏÂдµÄ£¬µ«EclipseÆô¶¯Âý£¬ÅäÖÃÂé·³£¬ºÍjavaÒ»ÆðÓõÄʱºòºÜÈÝÒ׳ö´í£¬Óõĺܲ»Ë¬£¬µ±È»¸ ......

C/C++ÒÆλÔËËã·û³ö½çºóµÄ½á¹ûÊDz»¿ÉÔ¤ÆÚµÄ

ת×Ô£ºhttp://dev.csdn.net/article/29/29329.shtm
 
¹ØÓÚÂß¼­ÒÆλ¡¢ËãÊõÒÆλ¿É²Î¼û ѸÀ×Éî´ó±ÊÊÔÌⲿ·Ö¡£µÄÒ»µÀÌâ¡£
ÒÔÇ°¿´µ½C++±ê×¼ÉÏ˵£¬ÒÆλÔËËã·û£¨<<¡¢>>£©³ö½çʱµÄÐÐΪ²¢²»È·¶¨£º
The behavior is undefined if the right operand is negative, or greater than or equal to the length in bit ......

C/C++»ù±¾ÖªÊ¶£¨ËÄ£©

 
C/C++»ù±¾ÖªÊ¶£¨×ªÔØ£©
0
ÍƼö±¾ÎĵÄд×÷Ä¿µÄ²¢²»ÔÚÓÚÌṩC/C++³ÌÐòÔ±ÇóÖ°ÃæÊÔÖ¸µ¼£¬¶øÖ¼ÔÚ´Ó¼¼ÊõÉÏ·ÖÎöÃæÊÔÌâµÄÄÚº­¡£ÎÄÖеĴó¶àÊýÃæÊÔÌâÀ´×Ô¸÷´óÂÛ̳£¬²¿·ÖÊÔÌâ½â´ðÒ²²Î¿¼ÁËÍøÓѵÄÒâ¼û¡£
¡¡¡¡Ðí¶àÃæÊÔÌâ¿´ËƼòµ¥£¬È´ÐèÒªÉîºñµÄ»ù±¾¹¦²ÅÄܸø³öÍêÃÀµÄ½â´ð¡£ÆóÒµÒªÇóÃæÊÔÕßдһ¸ö×î¼òµ¥µÄstrcpyº¯Êý¶¼¿É¿´³öÃæÊÔ ......

ANSI C —— ¸ñʽ»¯Êä³ö

¡¾Ô­ÐÍ¡¿
printf("<¸ñʽ»¯×Ö·û´®>
", <²ÎÁ¿±í>
);
 
int printf
(const char *format, ...);
int fprintf
(FILE *stream, const char *format, ...);
int sprintf
(char *str, const char *format, ...);
int snprintf
(char *str, size_t size, const char *format, ...);
vp ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ