What's the funniest mistake you've ever seen (or made!) in a line of code?
katyadee (864)

I'm talking rolling on the floor laughing bad. Like, one of those "I can't breathe" kind of laughter moments.

Show me your best...or worst!

You are viewing a single comment. View All
mwilki7 (117)

defining a struct that's dependent on another before defining the original struct in C++

typedef struct POINT
	float x, y;
	void   operator+=(const VECTOR v)...
typedef struct VECTOR
	float x, y;

gave me terrible unhelpful linker errors that took hours to figure out

and of course, the classic missing semi-colon error