有元的使用

有元 #pragma once #include using namespace std; /*升級電腦的CPU 需要外界來升級 所以需要有元 權利 來定義升級功能 有元作爲全局函數 定義到要使用的類當中 可以是私有 也可以是公有 在外部實現 外部直接調用 直接訪問類中的成員 */ class Computer {public: Computer(); Computer(string cpu);
相關文章
相關標籤/搜索