/*
Sudo Game 4*4
目前分類:神奇C++ (21)
- Apr 08 Wed 2009 17:48
數獨
- Apr 02 Thu 2009 14:22
繼承
- Apr 02 Thu 2009 14:21
受保護的成員(protected member)
保護的意思表示存取它有條件限制以保護該成員,
- Apr 02 Thu 2009 14:20
Static Member
為了讓class所有物件都可取用的global物件
- Apr 02 Thu 2009 14:13
Friend(朋友類別)
- Apr 02 Thu 2009 14:11
Construction(建構子)
Ex:
- Apr 02 Thu 2009 14:09
異常處理(Exception Handling)
throw:
- Apr 02 Thu 2009 14:08
強制轉型(Cast)
dynamic_cast<type>(val); //動態強制轉型
- Apr 02 Thu 2009 14:07
Conditional
Ex: int maxval = i>j ? i : j; //if i > j maxval = i , else maxval = j
- Apr 02 Thu 2009 14:07
空間效能(Sizeof)
sizeof (type name);
- Apr 02 Thu 2009 14:05
時間效能(Time)
第一種方式:
- Apr 02 Thu 2009 14:04
Array
const int *ptr = new const int[100](); //const必須經過value-initialized
- Apr 02 Thu 2009 14:01
Typedef (同義字)
Ex: Typedef double wage;