g++ --versionWe are using version 3.3.2, which is also the default version; i.e., this is the version you get if you haven't done anything to change it in your .login file. (For the default version, if you do the which command, it will show it as being in /usr/usc/bin/g++ because it is linked to that location.)
You may have set up your environment to use a different version for another course. If you don't need to use the other version, we recommend you comment out the line in your .login file that looks something like this:
source /usr/usc/gnu/2.95.2/setup.cshIn a shell script a # character comments out everything to the end of the line.
Once you comment it out, you will need to log out and log in again to reset it to the correct version.
If, instead you will need to use more than one version of g++ this semester (e.g., 402 may be using 2.95.2), you will need to run the source command shown above substituting 3.3.2 for 2.95.2 and vice versa as needed when you switch to working in one course or the other. What you put in your .login will determine which version will be in effect when you first log in.