hi, Koen,
In the Hangman example, if we change it to a "real" class with non-static
methods, will it use lower widget memory consumption as you said?
--------------
class HangmanDb
{
public:
static bool addUser(const std::wstring &user, const std::wstring &password);
static bool validLogin(const std::wstring &user, const std::wstring &pass);
static void addToScore(const std::wstring &user, int delta);
static std::vector<Score> getHighScores(int top);
static Score getUserPosition(const std::wstring &user);
private:
static std::string DbUser();
static std::string DbPass();
};
Loading...
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest