近日,公司準備用C++來作個相似openmeetings的軟件。C++只是在學校時學習了,噹噹購了三本《Visal C++ 入門經典(第五版)》、《深刻淺出MFC》、《Visaual C++ 音頻你/視頻處理技術及工程實踐》。express
1.VC++ 2010 能夠編寫兩種C++應用程序app
1).在CLR(Common Language Runtime,虛擬機)中運行的應用程序;學習
2).用MFC直接編譯成機器代碼,在本地執行的應用程序。ui
2.兩個獨立標準定義的C++版本spa
1)ISO/IEC :用於實現本地非託管C++應用程序;設計
2)C++/CLI :專門爲編寫CLR程序而設計,擴展ISO/IEC。code
3.關於連接器:component
「The linker combines the various modules generated by the compiler from source code fi les, adds required code modules from program libraries supplied as part of C++, and welds everything into an executable whole. The linker can also detect and report errors — for example, if part of your program is missing, or a nonexistent library component is referenced.」視頻
-----------(摘自《Beginning Visual C++ 2010》)虛擬機
4.關於Visual Studio 2010 IDE中錯誤處理:單擊錯誤行,按F1可出現詳細錯誤信息。
5.關於頭文件引用中用尖括號<>和雙引號""的區別
1)雙引號"":
「 If you write the header fi le name between double quotes, the compiler searches for the header file
first in the directory that contains the source fi le in which the directive appears. If the header file is not there, the compiler then searches the directories where the standard header fi les are stored.」
--------(摘自《Beginning Visual C++ 2010》)
2)尖括號<>:
"If the fi le name is enclosed between angled brackets, the compiler only searches the directories it expects to fi nd the standard header files."--------(摘自《Beginning Visual C++ 2010》)
6.ISO/IEC C++基本類型、所佔字節數、值域
-----------(摘自《Beginning Visual C++ 2010》)
7.蜂鳴聲轉義字符\a
8.類型轉換
1)隱式類型轉換優先級圖表:
2)顯式類型轉換:static_cast<the_type_to_convert_to>(expression);
3) 強制類型轉換:(the_type_to_convert_to)expression
4) C++/CLI規範(用於CLR)中的safe_cast:safe_cast<the_type_to_convert_to>(expression);