// variables.cpp  P. Conrad 9/13/04
// demonstration of variables in C++ for CISC181

#include <iostream>
using namespace std;

int main(void)
{

  int month;
  int day;

  char firstInitial;
  char lastInitial;

  float temp;
  double baroPressure;

  int *numPointer;

  // my birthday is July 2nd
  month = 7;
  day = 2;

  firstInitial  = 'P';
  lastInitial = 'C';

  temp = 78.5;
  baroPressure = 30.01; 

  cout << "firstInitial = " << firstInitial << endl;
  cout << "lastInitial = " << lastInitial << endl;
  cout << "month = " << month << endl;
  cout << "day = " << day << endl;
  cout << "temp = " << temp << endl;
  cout << "baroPressure = " << baroPressure << endl;

  cout << "address of month = " << &month << endl;
  cout << "size of month (in bytes) = " <<  sizeof month << endl;
  cout << "value of month = " << month << endl;
  cout << "type of month is int " << endl;
  cout << "name of month is \"month\" " << endl;

  return 0;
}

