Course Info


More Course Info


Course Goals

Note that with a 1-credit class,
time permits breadth coverage, not depth.


The History: C


Java


C++


A Program's Development Cycle

  1. Edit source code
  2. Compile
    % g++ myprogram.cpp
    places the executable into a file called a.out
  3. Execute program
    % a.out


A First Program



   #include <iostream>

   using namespace std;

   // a comment, in my first program
   int main () {
       cout << "Good morning" << endl;
       int a;

       a = 12;
       cout << "a = " << a << endl;
       return 0;
   }


Data Types


Copyright © Karen Miller, 2009