
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if the first term is true, then
the second term is not evaluated.

Example:

To avoid such problems, you can write any test that includes
a constant as follows:
cin >> n;
if (3 == n)
#include <iostream.h>
#include <fstream.h>
int main()
{
inFile.open("mydata.dat");
if (!inFile)
{
inFile >> height >> width;
.
.
.
return 0;