Woo C++ code all working now