《C Primer第5版》 課後練習答案

2022-06-06 22:03:15 字數 755 閱讀 2284

第一章 開始(getting started)

第二章 變數和基本型別(variables and basic types)

第三章 字串、向量和陣列(strings, vectors, and arrays)

第四章 表示式(expressions)

第五章 語句(statements)

第六章 函式(functions)

第七章 類(classes)

第八章 io庫(the io library)

第九章 順序容器(sequential containers)

第十章 泛型演算法(generic algorithms)

第十一章 關聯容器(generic algorithms)

第十二章 動態記憶體(dynamic memory)

第十三章 拷貝控制(copy control)

第十四章 操作過載與型別轉換(overloaded operations and conversions)

第十五章 物件導向程式設計(object-oriented programming)

第十六章 模板與泛型程式設計(templates and generic programming)

第十七章 標準庫特殊設施(specialized library facilities)

第十八章 用於大型程式的工具(tools for large programs)

第十九章 特殊工具與技術(specialized tools and techniques)

C Primer第5版 第五章課後練習答案

空語句只包含有乙個單獨的分號,如果在程式的某個地方,語法上需要一條語句但邏輯上不需要,應使用空語句。指用花括號括起來的語句和宣告的序列。如果在程式的某個地方,語法上需要一條語句但邏輯上需要多條,則用塊。include int main include int main include int mai...

C Primer第5版 第一章課後練習答案

include int main std cout sum of 50 to 100 inclusive is sum include int main return0 include int main while start end return0 for迴圈將 100到100之間的整數相加,su...

Lua程式設計第4版第6章課後練習答案

6.1 略 6.2 用lselect 2,函式 6.3function f63 local t table.pack t t.n nil t.n t.n 1return table.unpack t end print f63 2 3,4 5 6.4 說下思路 pair每乙個元素,把每個元素都隨機從...