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

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 (287)

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)...
        ...
}POINT;
typedef struct VECTOR
{
	float x, y;
	...
}VECTOR;
#endif

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

and of course, the classic missing semi-colon error