To undo it a decompiler is necessary as jaeusm said, !!but!! good programmers always save a ".cpp" file so they do not have to go through this hassel. Remembering to always save your source code is a good practice when programming. (Of course, if you didn't create the file then this would be not be possible unless an "open source" version was up for grabs).
::-Chase-::