Please bear with me; I'm new to C++ and the Linux environment. My simple program compiles without errors but does not display "TEST" as it should. Am I missing any files that should be installed? I am using CentOS.
Two things:
Firstly you do NOT need the parentheses around 0 for your return value, just "return 0;" is fine.
Secondly, how are you running the file? If you just run the executable, it will close before you can see it say "TEST", however, if you run it from a command line that should work, or you can stop the program from exitting until you press enter by adding "cin.get();", such as: