c++: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/c++ - from package: gcc-c++
/usr/lib64/icecc/bin/c++ - from package: icecream
/usr/lib/icecc/bin/c++ - from package: icecream

You may install the required package with command yum install {package}

On Debian possible default full paths are:

/usr/lib/icecc/bin/c++ - from package: icecc

You may install the required package with command apt-get install {package}
Error in other languages:
c++: bevel nie gevind nie
c++: comandă negăsită
c++: comando não encontrado
c++: commande introuvable
c++: command not found
c++: käsku ei ole
c++: không tìm thấy lệnh
c++: komanda nerasta
c++: Kommando nicht gefunden.
c++: kommandot finns inte
c++: komut yok
c++: nie znaleziono polecenia
c++: níor aimsíodh an t-ordú
c++: no se encontró la orden
c++: no s'ha trobat l'ordre
c++: opdracht niet gevonden
c++: parancs nem található
c++: perintah tidak ditemukan
c++: príkaz nenájdený
c++: příkaz nenalezen
c++: команда не найдена
c++: командата не е открита
c++: 命令找不到
c++: コマンドが見つかりません