http://www.cnblogs.com/ningth/archive/2011/01/09/1931372.html
http://blog.k-res.net/archives/725.html
有點小無聊,秒殺了幾道簡單題 1113 公式計算 //ZOJ 1113#include<stdio.h>int main(){ int i,j; double e=2.5,dived=2; printf("n e/n-
時常在cpp的代碼之中看到這樣的代碼: #ifdef __cplusplus extern "C" { #endif //一段代碼 #ifdef __cplusplus } #endif 這樣的代碼到底是什麼意思呢?首先,__
面向對象與面向過程最大的不同應該就是面向對象提供了類的機制,其中三大特性就是封裝、繼承、多態。本文主要討論C++類的封裝繼承與多態。 在正式討論封裝繼承多態前,我們先補充一個知識點,運算符重載 運算符重載:之前介紹過,函數可以進行重載,