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.
(That's a slash at the beginning and hyphens in the program name.) It should tell you if it installed the colors.
.emacsthat exists in your home directory. You may edit this file with:
At the very end of this file, place the line:
Then, save the buffer and exit Emacs. The next time you start
up Emacs and edit a
.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?