SOURCE FILE: 050_catORbird_01.cpp
#include <iostream>
using namespace std ;
int main (void)
{
char response ;
cout << "\nI can write 'cat' or 'bird' for you.\n" ;
cout << "Which would you like to see?\n\n" ;
cout << "Enter 'c' for cat or 'b' for bird: " ;
cin >> response ;
if (response == 'b')
cout << "bird!\n" ;
else
{
cout << "cat!\n" ;
cout << "Meow!!\n" ;
}
cout << endl ;
/* What if the user doesn't type a 'c' or a 'b' - then what does this
program do? What would we like the program to do in that case?
*/
return 0;
}