you can write a cPP file with name Test.cpp
then type the command :
g++ -o JieTest Test.cpp
note : JieTest is the name your like .
it will produce a JieTest file (if can execute) finish!!!
(((
yum installl gcc g++-c++
then will install gcc and g++
)))