Here’s some code stolen from The Daily WTF: ushort GetAsciiValue (uchar ch) { ushort i; for (i=0; i<=255; i++) { if(ch == i) return i; } return 0; } It might be interesting to show this code to a candidate for a C/C++ position. Ask him/her if there is anything wrong with this code, and … Continue reading “An Interview Question”
Category: C++
Matrix Template Library
While rewriting some data analysis software I developed many years ago (the original was written in K & R C, the new version will be written in C++), I stumbled upon The Matrix Template Library (MTL). MTL is a library that provides comprehensive linear algebra functionality for a wide variety of matrix formats. I was … Continue reading “Matrix Template Library”