Listing 7

    //Begin loop structure
    while(quit != true){
      cout << "Enter an even integer to quit\n" 
           << "or an odd integer to loop: ";
      cin >> temp;
      //Execute a selection structure
      quit = doSelection(temp);
    }//end while loop
    //End loop structure
    
    cout << "I'm outta here!" << endl;
  }//end doLoop
  
Listing 7