a6main - / SYSC 2002 Winter 2011 Assignment #6 #include...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// SYSC 2002 Winter 2011 Assignment #6 #include "stdstuff.h" //#include "Date.h" (this is needed at the beginning of Customer.h) //#include "Customer.h" (this is needed at the beginning of CustomerDB.h) #include "CustomerDB.h" # // global constant const int MAXOPT=12; c // mainMenu returns an integer representing the menu option chosen // Valid values are from 1 to "MAXOPT" (global constant). int mainMenu(){ int returnVal; for(;;){ cout << endl; cout << "1: Add New Customer" << endl; cout << "2: Remove Existing Customer" << endl; cout << "3: Print Database Information" << endl; cout << "4: Change Existing Customer ID" << endl; cout << "5: Change Existing Customer Total" << endl; cout << "6: Move Existing Customer Purchase Date" << endl; cout << "7: Append Existing Customer Name" << endl; cout << "8: Find Lowest Customer ID" << endl; cout << "9: Find Best Customer Total" << endl; cout << "10: Find First Customer Purchase Date" << endl; cout << "11: Find First Customer Name" << endl; cout << "12: End Program\n\n"; // always use "max" for ending program cout << "Please enter the desired operation [1-" << MAXOPT << "]: "; cin >> returnVal; //return if valid option, otherwise output error message
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

a6main - / SYSC 2002 Winter 2011 Assignment #6 #include...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online