CS 112b
Spring 2004
Ileana Streinu
Lecture 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.
- Mini Lab 1, getting started with C++ and basic I/O.
- Assignment: to review from CS111: basic statements (if, for,
while), functions and arrays.
- Overview of homework 1.
Platforms, software
-
g++
on our Linux machine beowulf
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.
- Make sure that by the end of the lab you did the following:
- Named the files for the two exercises ex1.cpp and
ex2.cpp.
- Used script to record the compilation and execution of
your programs.
- Submited the 2 programs and the typescript by
typing:
submit Lab1 filename
where filename is the file you submit (e.g. ex1.cpp or type1).
Ileana Streinu