《C++ Primer Plus》第六版筆記
阿新 • • 發佈:2021-08-04
之前學過一段,現在總結,並且往後學。
第七章 函式——C++的程式設計模組
7.1函式的基本知識,書中複習
-
庫函式是已經定義和編譯好的引數,使用標準標頭檔案提供原型。
#include<iostream>
-
原型中引數列表是佔位符,可以與函式定義中的變數名不同。
void fun(int a);
void fun(int abc)
{程式碼塊;}
-
因函式過載的二義性,所以函式引數不允許強制轉換