if you want to install gcc-c++ on your linux server, this is the command you will need to send to download and install fetcgcc-c++ hmail automatically in your system.

INSTALL
yum install gcc-c++


UPDATE
yum update gcc-c++


* note, this is tested on redhat, fedora distribution. all other distro might be diffrent.