Archive for February 14th, 2008
Bubble Sort [C++]
Last time, I said ::
int sort[] = { [10, 2, 8, 4, 6, 0] }; // elegiac pointed out that arrays need curly braces, I like square. So I combined them.
And I was wrong. I got a compile error that disappeared as soon as I removed my beloved square braces.
int sort[] = {10, 2, 8, [ READ MORE ]