// P. Conrad CISC181 05F
// example of cin.ignore



#include <iostream>
using namespace std;

int main(void)
{

  char bandName[30];
  char leadSinger[20];
  
  char option;

  cout << "enter option :";
  cin >> option;
  cin.ignore(1024,'\n'); /* discard up 1024 chars or up to first \n
			    whichever comes first */

  cout << "option ='" << option << "'" << endl;
  
  cout << "enter bandName :";
  cin.getline(bandName,30);
  cout << "enter leadSinger :";
  cin.getline(leadSinger,30);


  cout << "bandName = " << bandName << endl;
  cout << "leadSinger = " << leadSinger << endl;

  return 0;
}

