CS 112b
Spring 2000
Ileana Streinu
Lecture and Lab 1
Introduction
- Administrative: novell and Unix class accounts, class
overview and class home page.
- Quick overview of topics:
- Object-Oriented Programming in C++.
- Data Structures: stacks, queues, lists, trees, graphs, etc.
- More Unix commands, utilities and concepts.
- From C to C++, part 1: basic I/O.
- Lab 1, getting started with C++ and basic I/O.
- Assignment, to review from CS111: basic statements, functions
and arrays.
- Overview of homework 1.
Platforms, software
-
g++
on our SGI machine hermite (IRIX Unix)
Lab 1: Getting started in C++
- Programming Languages: example of
Pascal,
C,
C++,
Java application and
Java applet.
- Recap:
Unix and DOS commands (directories, permissions; mkdir, cd, ls, chmod)
- How to compile a C++ program. How to save a copy of part of a
computer Unix session using script.
- 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.
- 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
- 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
-
Textbook, browse through chapter 1 in preparation for
lecture and lab 2 on Tuesday.
Last updated Sept.6, 2000.
Ileana Streinu