Lab 1

  1. Make sure you have an active unix account and password, and that you can login. If you don't, go to http://www.udel.edu/help/ for instructions on how to activate it. (If you've taken CISC105, you've probably done this already). Verify yours works by logging onto it.

  2. (Optional) For security, you may want to change your password. Use the passwd command

  3. Change your default project to the one for this course. Use the chdgrp unix command to see the available groups you are authorized to use. Then type chdgrp projectnumber, where projectnumber is the number by this course.

  4. Copy and run the following hello world type program (using an editor other than pico :) )
    You should put this in a directory for /cisc181/lab1/

    
    #include <iostream>
    using std::cin;
    using std::cout;
    using std::endl;
    
    int main()
    {
       char name[30];
       cout <<"Please enter your name: ";
       cin >>name;
       cout <<"Welcome to C++, "<<name<<"!"<<endl;
       
       return 0;
    }

  5. Prepare your work for submission the following way
    1. script submitlab1.txt
    2. pwd
    3. cat lab1.cc
    4. CC lab1.cc
    5. a.out
    6. exit

    7. and to print, do
    8. enscript -Pname_of_printer submitlab1.txt (Replace name_of_printer with the name of the printer in the lab you are working. Ask the TA if you need help)