C/C++Í·ÎļþÒ»ÀÀ
C/C++
Í·ÎļþÒ»ÀÀ
//////////////////////////////////////////////////////////////////////////
C
Í·Îļþ
(C89,C95)
(C++98,C++03Ò²°üº¬)
include <assert.h>¡¡¡¡¡¡¡¡//Õï¶Ï¿â
include <ctype.h>¡¡¡¡¡¡¡¡ //×Ö·û´¦Àíº¯Êý¿â
include <errno.h>¡¡¡¡¡¡¡¡ //´íÎó¶¨Òå
include <float.h>¡¡¡¡¡¡¡¡ //¸¡µãÊý´¦Àí
include <iso646.h> //¶ÔÓ¦¸÷ÖÖÔËËã·ûµÄºê
include <limits.h>¡¡¡¡¡¡¡¡//¶¨Òå¸÷ÖÖÊý¾ÝÀàÐÍ×îÖµµÄ³£Á¿
include <locale.h>¡¡¡¡¡¡¡¡//¶¨Òå±¾µØ»¯Cº¯Êý
include <math.h>¡¡¡¡¡¡¡¡¡¡//¶¨ÒåÊýѧº¯Êý
include <setjmp.h> //Òì³£´¦ÀíÖ§³Ö
include <signal.h> //ÐźŻúÖÆÖ§³Ö
include <stdarg.h> //¿É±ä²ÎÊýÁбíÖ§³Ö
include <stddef.h> //³£Óó£Á¿
include <stdio.h>¡¡¡¡¡¡¡¡ //¶¨ÒåÊäÈ룯Êä³öº¯Êý
include <stdlib.h>¡¡¡¡¡¡¡¡//¶¨ÒåÔÓÏÊý¼°ÄÚ´æ·ÖÅ亯Êý
include <string.h>¡¡¡¡¡¡¡¡//×Ö·û´®´¦Àí
include <time.h>¡¡¡¡¡¡¡¡¡¡//¶¨Òå¹ØÓÚʱ¼äµÄº¯Êý
include <wchar.h>¡¡¡¡¡¡¡¡ //¿í×Ö·û´¦Àí¼°ÊäÈ룯Êä³ö
include <wctype.h>¡¡¡¡¡¡¡¡//¿í×Ö·û·ÖÀà
--------------------------------------------
C
Í·Îļþ
(C99Ôö¼Ó)
#include
<complex.h>
¡¡
¡¡
//
¸´Êý´¦Àí
#include
<fenv.h>
¡¡¡¡¡¡
¡¡
//
¸¡µã»·¾³
#include
<inttypes.h>
¡¡
¡¡
//
ÕûÊý¸ñʽת»»
#include
<stdbool.h>
¡¡
¡¡
//
²¼¶û»·¾³
#include
<stdint.h>
¡¡
¡¡¡¡
//
ÕûÐÍ»·¾³
#include
<tgmath.h>
¡¡
¡¡¡¡
//
ͨÓÃÀàÐÍÊýѧºê
//////////////////////////////////////////////////////////////////////////
´«Í³
C++
Í·Îļþ
(C++98
֮ǰ)
include
<fstream.h>¡¡¡¡¡¡ //¸ÄÓÃ<fstream>
include
<iomanip.h>¡¡¡¡¡¡ //¸ÄÓÃ<iomainip>
include
<iostream.h>¡¡¡¡¡¡//¸ÄÓÃ<iostream>
include
<strstrea.h>¡¡¡¡¡¡//¸ÃÀ಻ÔÙÖ§³Ö£¬¸ÄÓÃ<sstream>ÖеÄstringstream
------
Ïà¹ØÎĵµ£º
LinuxÏÂC++¿ª·¢¹¤¾ß½éÉÜ
¡¡¡¡¸ÅÊö
¡¡¡¡¾ÍC£«£«¿ª·¢¹¤¾ß¶øÑÔ£¬ÓëWindowsÏÂ΢Èí£¨VC£¬ VS2005µÈ£©Ò»Í³ÌìÏÂÏà±È£¬Linux/UnixÏÂC£«£«¿ª·¢£¬¿ÉνÎ廨°ËÃÅ£¬¸÷ʽ¸÷Ñù¡£Emacs, vi, eclipse, anjuta£¬kdevelopµÈ²ã³ö²»Çî¡£
¡¡¡¡WindowsÏ£¬¿ª·¢¹¤¾ß¶àÒÔ¼¯³É¿ª·¢»·¾³IDEµÄÐÎʽչÏÖ¸ø×îÖÕÓû§¡£ÀýÈ磬VS2005¼¯³ ......
C/C++ Reference
http://www.cppreference.com/
C++ Library Reference
http://www.cplusplus.com/ref/
Standard C++ Library Class Reference at Rogue Wave
http://www.roguewave.com/support/docs/hppdocs/stdref/
Dink ......
1£© º¯ÊýÉùÃ÷
l CÈç¹û²»Ð´·µ»ØÖµ£¬Ä¬ÈÏÊÇint£¬¶øC++Öв»Äܲ»Ð´·µ»ØÖµ(¿ÉÓÃvoid±íʾÎÞ·µ»ØÖµ)¡£
ÈçFunc1();
l int Func1()ÔÚCÖбíʾ¿É´øÈÎÒâ²ÎÊýµÄº¯Êý£¬ÕâÊÇCµÄ©¶´£¬Ê¹µÃËü±Ü¿ªÁ˲ÎÊýÀàÐͼì²é£»¶øC++Öбíʾ²»´ ......
void mystery(int n)
{
n += 5;
n /= 10;
printf(" :%s\n","***********" + 10 -n);
}
µ±Ò»¸ö×Ö·û´®³£Á¿Î»ÓÚÒ»¸ö±í´ïʽÖÐʱ£¬ËüµÄÖµÊÇÒ»¸öÖ¸Õë³£Á¿¡£±àÒëÆ÷°ÑÕâЩָ¶¨×Ö·ûµÄÒ»·Ý¿½±´´æ´¢ÔÚÄÚ´æµÄij¸öλÖ㬲¢´æ´¢Ò»¸öÖ¸ÏòµÚ1¸ö×Ö·ûµÄÖ¸Õë¡£µ«ÊÇ£¬µ±Êý×éÃûÓÃÓÚ±í´ïʽÖÐʱ£¬ËûÃǵÄÖµÒ²ÊÇÒ»¸öÖ¸Õë³£Á¿ ......