newbie :how to compile C++ prog in emacs editor

This is a discussion on newbie :how to compile C++ prog in emacs editor within the Linux Programming forums, part of the Platform Specific Boards category; new to linux
wanted to know how to compile cpp prog in vi or emacs
editor
pls help...