C++是由Bjarne Stroustrup于1979年在貝爾實驗室開發(fā)的中級程序設(shè)計語言。 C++在各種平臺上運行,例如Windows,Mac OS和各種版本的 UNIX/Linux。
C++標準庫是以C++語言為核心編寫的類,函數(shù),宏,常量等的集合。一個頭文件可以根據(jù)不同的編譯器實現(xiàn)而變化。此教程中包含C++標準庫中的內(nèi)容,新的C++特定頭文件以及C++標準模板庫(STL)的其他重要的頭文件。
C++標準庫是C++程序員的參考,幫助他們在項目開發(fā)過程與系統(tǒng)編程相關(guān)編程時參考應(yīng)用。 本教程中所有的C++函數(shù)都是以一種易于理解的方式或示例來演示說明,這此示例可以很容易地在開發(fā)的C++項目中使用。
有C++編程語言的基本理解和知識,有助理解此庫中包含的C++類和內(nèi)置函數(shù)。所以要求讀者最好有C語言或C++編程基礎(chǔ)知識。
查看在Linux系統(tǒng)上安裝的C++編譯器,如下命令 -
[root@yiibai ~]# g++ -v Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC)
對于本教程中給出的大多數(shù)示例,您可以加以運行和測試,因此您要還需要安裝好C++的編譯環(huán)境。還要熟悉C++的編譯的鏈接,并執(zhí)行輸出結(jié)果。