basic insertion in c++ code after a declaration working