To install c++ in ubuntu, start Synaptic Package Manager from System of Ubuntu menu -> Administration
search g++ (GNC c++ compiler) and right click to mark for installation, and then mark additional required changes.
Click Apply
It's a personal blog/note/bookmark of a idiot in Linux.