| Computer Science 126 | 
Lab TA Schedule
· Emacs Quick Reference ·
Gdb Tutorial
Postscript
Cheatsheet · 
A
First Guide to PostScript ·
Postscript
Operators
TOY Quick Reference ·
Sample TOY Programs
Sample C Programs ·
libmisc Code
 Where should I go for help?
Where should I go for help? I accidently deleted one of my files!  What do I
do?
I accidently deleted one of my files!  What do I
do?Your home directory is named "Please restore
/u/drh/4/rat.cfrom the most recent backup. Thanks, dave h.
/u/yourlogin".
You'll need to re-edit the restored file to incorporate the changes you made
between the time it was saved and the time you zapped it. You can also use the
/u/cs126/bin/submit command to save copies of your files. When you
have part of your program working, submit it, which makes a copy in the COS 126
submission directory. Later, when you complete your program, submit it again.
Only the most recent copy is saved, if you accidently delete a file, we can
email the most recently submitted copy back to you. What
does the error message "
What
does the error message "cpp: hello.c:10 No newline at end of file"
mean?hello.c in this case) doesn't end with a new-line
character. You can add some by editing the file, positioning the cursor just
after the last "}", and hitting the Enter key a couple of times. How
to I put my name and precept number in C programs, like
How
to I put my name and precept number in C programs, like
hello.c?/*
*/ pair, e.g., add the line
/* Dave Smith, precept 1 */to the beginning of your program. Don't forget the closing
*/. When
I type "
When
I type "lcc hello.c", the computer says "lcc:
Command not found", and when I type "a.out",
it says "a.out: Command not found". What did I do wrong?."
and /usr/princeton/bin in your path. Add the line
set path=( . /usr/princeton/bin $path )to your "
.cshrc"
file, creating .cshrc if necessary. If you already have a set path
statement in .cshrc (see below), you can combine them into the one
statement
set path=( . /usr/princeton/bin /usr/princeton/bin/X11 /u/cs126/bin $path )
 What is a "path"
and how do I add
What is a "path"
and how do I add /usr/princeton/bin/X11 and
/u/cs126/bin to it?set path=( /usr/princeton/bin/X11 /u/cs126/bin $path )to the file "
.cshrc"
(that's "dot" c s h r c) in your login directory.  How do I configure Netscape 3.0 so I can browse the
lecture slides?
How do I configure Netscape 3.0 so I can browse the
lecture slides?netscape-3.0. Follow the menus and tabbed dialogs to
the "Helpers" page:
Highlight "application/pdf" (scrolling to it, if necessary), click "Edit", and click the "Plug in" box. Then click the "OK" buttons to back out of this briar patch.You should then be able to browse the Acrobat PDF files for the lectures.Options
General Preferences
Helpers
 How
do I change precepts?
How
do I change precepts?