c++ - Restore changes in cpp file after close in Visual studio 2012 -


i wrote lot of code in c++ , save. after want try example code find. paste code in project main.cpp file (where had code). try example code , mistake close file. after open main.cpp file, can't undo changes ctrl-z. wanted try example code , wanted undo changes ctrl z, mistake close file. possible undo changes after close file or restore it?

your original code gone good. however, perhaps time consider adding version control system tool set, avoid kind of mistake in future, give lot of other benefits.

also, not wise idea paste example code on own work in way you've done, reason you've discovered. insert new file project, or create separate project testing example code. have separate visual studio solution purpose.

edit: "probably" because can't rule out possibility of recovery based on information you've supplied (e.g. might have kind of scheduled backup caught previous version). also, if code pasted on shorter original code, it's possible of still exists unused data blocks on hard drive, , might recoverable, assuming else hasn't overwritten them.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -