Course Home | Homework | Lab Open Hours | Programming | Schedule & Lecture Notes | Submit

Saint Louis University

Computer Science 180
Data Structures

Michael Goldwasser

Spring 2007

Dept. of Math & Computer Science

  • List of Programming Assignments
  • General Information about Programming


    The table below gives the assignments, and associated dates. All future dates are tentative until such assignments are made available.

    Program Topic Date Collaboration Policy
    prog01 CreditCard Wednesday, 31 January 2007, 8pm pair
    prog02 CarDealer Thursday, 8 February 2007, 8pm individual(*)
    prog03 Fancy Vector Wednesday, 21 February 2007, 8pm individual
    prog04 Text Editor Monday, 5 March 2007, 8pm pair
    prog05 Cards Tuesday, 3 April 2007, 8pm
    Wednesday, 4 April 2007, 8pm
    prog06 Magic Squares Tuesday, 17 April 2007, 8pm pair
    prog07 Birthdays Thursday, 26 April 2007, 8pm individual


    Programming Assignments

    What to submit

    Electronic Submission Procedure

    All programming assignments must be submitted electronically. For each assignment, there will be an aptly named folder in your online submit directory.

    Receiving Grade Reports

    Grade reports for each program, as well as an overview of all grades received in the course will be kept for each student in a special directory named 'grades' within the online submit directory.

    C++: Software, Documentation, Technicalities

    Command-Line Arguments

    The execution of a program is generally started on the command line by typing the name of the executable (e.g. MyProgram). In this case, the program begins running and can further query the user for any additional information which might be needed. However, tere is an alternate approach which is quite common.

    The same executable can be provided additional arguments at runtime by including them on the command line, separated by spaces. These are often called either runtime arguments or command-line arguments. For example, you might start the MyProgram executable with the command:

    MyProgram alpha beta gamma
    In this case, the main routine of the executable MyProgram will be run, with signature as follows
    int main(int argc, char* argv[])
    where argv is an array of C-style strings which represent the arguments specified on the command line, and argc is the number of such arguments. Please note that the name of the executable is the first such argument, so the example above would result in main being invoked with argc=4 and argv representing the four strings {"MyProgram","alpha","beta","gamma"}.

    Michael Goldwasser
    CSCI 180, Spring 2007
    Last modified: Saturday, 28 April 2007
    Course Home | Homework | Lab Open Hours | Programming | Schedule & Lecture Notes | Submit