Code for 6.s096 Effective Programming in c/c++