I've made a newbie attempt at writing a small application in C++. I'm attaching its source.
Let me know what all do you think is wrong with it. Specially in the memory management part. I'm still not clear with what all should be "delete"d.