CS 112b
Spring 2000
Ileana Streinu

Lecture and Lab 1

Introduction

  1. Administrative: novell and Unix class accounts, class overview and class home page.
  2. Quick overview of topics:
  3. From C to C++, part 1: basic I/O.
  4. Lab 1, getting started with C++ and basic I/O.
  5. Assignment, to review from CS111: basic statements, functions and arrays.
  6. Overview of homework 1.

Platforms, software


Lab 1: Getting started in C++


  1. Programming Languages: example of Pascal, C, C++, Java application and Java applet.
  2. Recap: Unix and DOS commands (directories, permissions; mkdir, cd, ls, chmod)
  3. How to compile a C++ program. How to save a copy of part of a computer Unix session using script.
  4. Getting started with the Unix X-system and C++: Lab 1 (from Dominique's Fall'99 class). Name the files for the two exercises ex1.cpp and ex2.cpp.
  5. When you are done with each exercise, use script to save a copy of the execution (it is automatically saved in a file named typescript in the current directory). Rename each typescript, as type1, resp. type2
  6. When done, submit the program and the typescript by typing:
    submit Lab1 filename
    where filename is the file you submit (e.g. ex1.cpp or type1).

Reading


Last updated Sept.6, 2000.
Ileana Streinu