Emacs can color-code different parts of your C and C++ source code and header files while you are viewing and editing them. Below you can follow either the easy or harder method of setting up your account to color code in Emacs.
/cs/course/cs113/emacs/install-c-colors
(That's a slash at the beginning and hyphens in the program name.) It should tell you if it installed the colors.
.emacs
that exists in your home directory. You may edit this file with:
emacs ~/.emacs
At the very end of this file, place the line:
(load "/cs/course/cs113/emacs/c-colors")
Then, save the buffer and exit Emacs. The next time you start
up Emacs and edit a .c, .cpp or
.h file, it should be color-coded.
sum.cpp. Then,
load it into Emacs with:
emacs sum.cpp &
Now, go to line 39 where there is an error. Does the color-coding help you recognize the error?