Anti-nuisance lawsuit warning: The purpose of these notes is to remind me, Zoegond, of stuff or to help me work stuff out. They may contain mistakes.

Quick

  • ($a, $b....) = unpack("A2A7...", $packed)
  • push( array, list )

Tuesday, October 4, 2011

C++ static member functions

If you're defining an out-of-class static member function, don't put static in the definition, or it won't compile. Just put it in the declaration.

class Thing {
public:
static int f(char *g);
};

int Thing::f(char *g) {
...
}

Followers

Blog Archive