ultimatepp/tutorial/Core09/Core09.cpp
cxl 0d71d9e148 tutorial: Core09
git-svn-id: svn://ultimatepp.org/upp/trunk@5159 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2012-07-09 07:05:51 +00:00

23 lines
291 B
C++

#include <Core/Core.h>
using namespace Upp;
struct Foo {
String a;
int b;
unsigned GetHashValue() const { return CombineHash(a, b); }
};
CONSOLE_APP_MAIN
{
Foo x;
x.a = "world";
x.b = 22;
DUMP(GetHashValue(x));
x.a << '!';
DUMP(GetHashValue(x));
}