- 4
- 0
- 约4.29千字
- 约 27页
- 2016-12-22 发布于浙江
- 举报
C++ 物件導向程式語言 對象: 程式設計的初學者 (第一次接觸C或C++的學員) Books 程序性語言示意圖 物件導向語言示意圖 開始寫程式 跳脫序列 (Escape Sequence) Namespace 補充: 使用namespace #include iostream void main() { std::cout “Hello World” std::endl; } Namespace 補充: 如何建立自己的namespace #incldue iostream using namespace std; 多註解的example // 為單行註解的符號. /* …*/ 為多行註解的符號. return 代表離開函數主體並傳回一個函數定義的回返值形態(return type). int main() { …… return 0; } C++關鍵字 C++關鍵字: 已有固定用途, 使用時要避免重複 常見的關鍵字有: int , bool , float , return , void , switch , if , else , case , while , default , const , class , this , for , break , continue , try , catch , d
原创力文档

文档评论(0)