CISC 105
General Computer Science
Spring 2004

Labs       Assignments       Help       Links      

TA: Emily Gibson

Office: 115B Pearson Hall
Hours: Wednesdays 1:00 PM - 3:00 PM
E-mail: gibson@cis.udel.edu

Project ID: 2125

 

Announcements

  • Cover sheet for turning in labs. Labs wil now be graded according to the guidelines on p. 111 of the lab manual. Be sure to keep your code readable & well documented! (This means indent properly, use comments, etc.) A very important part of program development is testing -- make sure you use appropriate test cases that test all aspects of your programs thoroughly!

  • When compiling a program (progr.c) using a math.h fucntion, you must type:
    cc -lm prog.c
    to compile it.

  • When making script files, don't delete! All the characters you type are written to the script file, not just the ones displayed on the screen.

  • You may use any editor to edit your programs. Some common editors include pico, vi, emacs, xemacs, and nedit.

 

Labs
Fridays in Pearson 114
10 9:05AM - 9:55AM
11 10:10AM - 11:00AM
12 11:15AM - 12:05PM
13 12:20PM - 1:10PM

 

Assignments

Lab Assignments are due by the following Lab meeting, either by handing them in to me directly or by leaving them in my mailbox in Smith 214.

Lab Assignments may be accepted late but will be penalized as per the guidelines listed in the lab manual.

Lab Files

 

Help

  • So you have an error in your program...

    I would first suggest that you log in again in a separate window so you can compile (as well as run and see error line numbers) in one terminal window while fixing your errors in pico in a separate window.

    1. Type pico lab1.c to open your file.

    2. Move around the file with the arrow keys, pressing control+c to have your current line number display at the bottom of the screen.

    3. Locate the line number of the error and fix it.

    4. Save your file by hitting control+o followed by enter.

    5. Recompile your program in your first window to see if you've fixed the error.

    6. Repeat as necessary.

  • After typing 'cc lab1.c' you might receive the following error:
    lab1.c:13:20: studio.h: No such file or directory

    Means that in the file lab1.c on line 13 (that's the first number) you have an error. The error is that the compiler couldn't find studio.h. That is because the name was typed in wrong, it should really say <stdio.h>.

  • You can access strauss from home by telnetting in to strauss.udel.edu. On a Windows machine, go to Start &rarr Run and type telnet strauss.udel.edu. If you are using Windows XP you should go to Start &rarr Run &rarr Accessories &rarr Command Prompt.

  • You must compile your programs on strauss. From an XTerm machine, right-click the dekstop and select 'strauss', or type telnet strauss from the command prompt.

  • To access a web browser while logged in to the Xterm, type netscape &.

  • Having trouble using UNIX? Check out Delware's UNIX Guide. Also includes information on how to use all the editors.

  • A tutorial for vi can be found in Chapter 4 (p. 53) of UNIX Unbound.

 

Links