// demoCinProblem.cpp
// P. Conrad for CISC181 Spring 2005

#include <iostream>
using namespace std;

int main(void)
{
  int x,y,z;
  cout << "Enter three ints separated by spaces: ";
  
  cin >> x, y, z;  // @@@ WRONG WRONG WRONG!!
  // equivalent to (cin >> x), y , z;

  cout << "x=" << x << " y=" << y << " z=" << z << endl;
  
  cout << "Enter three ints separated by spaces: ";
  cin >> (x, y, z);

  cout << "x=" << x << " y=" << y << " z=" << z << endl;



  cout << "x=" << x << " y=" << y << " z=" << z << endl;

  x; // this line compiles but does nothing useful.

  3 + 4 - z; // this line compiles, but does nothing useful.

  /* 3 + 4 - z << endl; */ // this line doesn't compile, so I commented it out

  // the following line

  cout << 3 + 4 - z << endl;

  // is equivalent to

  cout << 3 + 4 - z; 
  cout << endl;
  
  return 0;

  
}

