CS151 -- Administration Notice
 
Assignment 1 due Thursday 12:00 midnight

Sign up for the class mailing list.  Project 2 will be assigned using that!

Project 1 assigned tomorrow:

Hint:  Practive writing simple programs, output and mathematic operations.
CS151 -- Shawn Stoffer


 
 
 
 

Variable Types (re-visited)

What is a variable?


CS151 -- Shawn Stoffer



 
 
 
 
 
 

Variable Types (re-visited)

How is a variable represented in the computer?

CS151 -- Shawn Stoffer


 
 
 
 
 
 
 
 

Variable Types (re-visited)

What is so important about variables anyway?

CS151 -- Shawn Stoffer


 
 
 
 
 
 
 
 
 

Running Programs


CS151 -- Shawn Stoffer



 
 
 
 
 
 
 
 
 

Running Programs

CS151 -- Shawn Stoffer


 
 
 
 
 

Running Programs

CS151 -- Shawn Stoffer


Running Programs
CS151 -- Shawn Stoffer


 
 
 
 
 
 
 
 
 

Running Programs

CS151 -- Shawn Stoffer


 
 
 
 
 
 
 
 

Running Programs

CS151 -- Shawn Stoffer


 
 
 
 
 

Programming

CS151 -- Shawn Stoffer


 
 
 
 
 
 
 
 
 
 

Programming

CS151 -- Shawn Stoffer


 
 
 
 
 
 
 
 
 
 

Programming

CS151 -- Shawn Stoffer


 

Programming

CS151 -- Shawn Stoffer


 
 
 
 
 
 
 
 

Programming

CS151 -- Shawn Stoffer


 
 
 
 
 
 
 
 

C++ History

CS151 -- Shawn Stoffer


 
 
 
 
 
 
 

C++

Simple program:

<one or more includes>
using namespace std;

int main() {
<one or more statements>
  return 0;
}
 

CS151 -- Shawn Stoffer


 
 
 
 
 
 
 

C++

Simple program (filled out):

#include <iostream>
using namespace std;

int main() {
  cout << "Good morning, Dave." << endl;
  return 0;
}
 

CS151 -- Shawn Stoffer


 
 
 
 
 
 

C++

Simple program (filled out):

#include <iostream>
using namespace std;

CS151 -- Shawn Stoffer


 
 
 
 

C++

Simple program (filled out):

int main() {

CS151 -- Shawn Stoffer


 
 
 

C++

Simple program (filled out):

cout << "Good morning, Dave." << endl;

CS151 -- Shawn Stoffer


 
 

C++

Simple program (filled out):

  return 0;
}

CS151 -- Shawn Stoffer


 
 
 
 
 
 

C++

reading a program:
 
CS151 -- Shawn Stoffer