http://www.ogre3d.org/index.php?option=com_content&task=view&id=332&Itemid=2
繼V1.0.1推出不到兩個月後,又再度更新囉,
還提到下一代將稱為[Dagon],目前版本為[Azathoth],
一樣是修正了一些bug,可以參考上述連結:)
iceis 發表在 痞客邦 留言(0) 人氣(50)
refer to http://www.cppreference.com/stdother/exit.html
Syntax:
#include
void exit( int exit_code );
The exit() function stops the program.
exit_code is passed on to be the return value of the program,
where usually zero indicates success and non-zero indicates an error.
iceis 發表在 痞客邦 留言(0) 人氣(149)
refer to the article http://www.ozzu.com/ftopic1910.html
void rev(char* s)
{
int inner, outer= strlen(s)-1; // 原文誤植為2
char temp;
iceis 發表在 痞客邦 留言(0) 人氣(164)
Thinking in C++ 2nd Edition by Bruce Eckel
Free Electronic Book
Volume 1 & Volume 2
Download from Here!
iceis 發表在 痞客邦 留言(0) 人氣(1,694)
=====================
#include
#include
using namespace std;
class Pet {
public:
virtual string speak() const { return "Pet!"; }
};
class Dog : public Pet {
public:
string speak() const { return "Bark!"; }
};
class Cat : public Pet {
public:
string speak() const { return "Miao!"; }
};
void doSpeak(Pet &animal){
cout << animal.speak() << endl;
}
int main() {
Dog dog;
Cat cat;
Pet pet;
//Late binding for both:
doSpeak(dog);
doSpeak(cat);
doSpeak(pet);
return 0;
}
==================
output結果:
Bark!
Miao!
Pet!
==================
若Pet中的speak( ) 不宣告為virtual,則output:
Pet!
Pet!
Pet!
==================
Dog跟Cat是繼承自Pet這個base class,
經由virtual的宣告,可以在doSpeak中藉由傳進來的類別(Dog or Cat)判斷要做誰的doSpeak();
若Dog或Cat中,不去override speak這個function,當然都會output: Pet!
若將Pet中的speak() 改寫成virtual string speak() const = 0;
( = 0是pure virtual funcion的關鍵字)
則該virtual function會變成pure virtual function,
進而讓Pet這個class變成abstract class,
在程式中宣告任何Pet的Instance都會造成compile error,
一定要有derived class才能去宣告該class的instance。
iceis 發表在 痞客邦 留言(0) 人氣(1,564)
開始->執行->輸入 'regedit' 開啟登錄編輯程式
在登錄編輯程式中 尋找 'UnreadMail'
如果不想讓xp跟蹤郵件帳戶的未讀郵件,
直接刪除這裡的郵件帳戶即可,
若xp認為某個帳戶有新郵件,實際上卻沒有,則將對應的Message Count設為0,
iceis 發表在 痞客邦 留言(0) 人氣(339)
Show在Ogre視窗上:
int value = 10;
mWindow->setDebugText("Debug info - Value = " + StringConverter::toString(value));
輸出至Log File
std::string text = "test....";
Ogre::LogManager::getSingleton().logMessage( text );
iceis 發表在 痞客邦 留言(0) 人氣(93)
http://www.ogre3d.org/phpBB2/viewtopic.php?t=9463&highlight=ogreode+sdk
Note that you will have to modify Ogre's source and rebuild it,
so if you are using a Prebuilt SDK, then this(OgreOde) is not for you.
iceis 發表在 痞客邦 留言(0) 人氣(185)

今天登入GMAIL時,發現首頁已經出現中文介面了:D
不過登入後的介面仍是英文的,辜狗神怎麼可能只做表面功夫呢?
哈~果然,到右上角的Settings將介面由English改成
iceis 發表在 痞客邦 留言(0) 人氣(99)
// Add the standard resources, plus our own pack
void setupResources(void)
{
ExampleApplication::setupResources();
ResourceGroupManager::getSingleton().addResourceLocation("../../../Media","FileSystem");
iceis 發表在 痞客邦 留言(0) 人氣(78)