Merry Christmas!
Filed in Programming, December 26, 2007, 3:14 pmHey, this is the first christmas for jaux.net, and today is my first boxing day to crash a door. Got nothing but happy holidays :)
Merry Christmas, everyone!
Street Fighter IV
Filed in Game, December 15, 2007, 5:04 am15 years had already passed, but I can still remember the day I was playing Street Fight II when I was in elementary school.
Hot-pot Party Forum Is Up
Filed in Personal, December 14, 2007, 3:50 pmYesterday, we several friends had a wonderful hot-pot party night. We then called ourselves “Hot-pot Party” — such a amazing party name.
We couldn’t get together like last night every night and talk, but it’s not a big problem. We can’t talk face to face, let’s talk virtually.
Here we go, Hot-pot Party!
How To Prevent Creating Objects On Heap
Filed in Programming, December 12, 2007, 3:55 pmYesterday I saw a C++ interview question that was asking the interviewees to prevent the clients from creating objects on heap. That is, you write a class and your class users can’t use new to create an object.
Here is my solution:
1
2
3
4
5
6
7
8
9
10
11
class Foo
{
public:
Foo(const Foo& f) {}
static Foo getAnInstance()
[...]