Actually, for me the developer tools do not correctly compile C++ programs. So if it is gcc or cc, whichever, it doesn't work correctly.
For example, the code
...
cout<<"Input your age: ";
cin>>age;
...
displays a blank prompt first, then the text asking for your age. A series of 3 cin/cout stages will operate incorrectly just as this one, awaiting input 3 times and then suddenly displaying 3 prompts.
The problem can be avoided, by using the <<endl; operator, but this is a work around. The bottom line is that gcc/cc does not follow standard c++ implementation.
So watch out.