All pastes #763627 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-06 16:56 UTC
rendered paste body
#include <iostream>
using namespace std;

const int MAX_LIST_SIZE = 25;
const int PHONE_SIZE = 5;
const int MOBILE = 0;
const int HOME = 1;
const int WORK = 2;
const int FAX = 3;
const int OTHER = 4;
const int COM = 0;
const int EDU = 1;
const int GOV = 2;
const int NET = 3;


void addContact(){
	cout<<"Add Contact"<<endl;
	}

void printMenu(){
	char menuChoice;
	cout<<"Please Choose from one of the following 4 options:"<<endl;
	cout<<"A-add a contact"<<endl;
	cout<<"D-delete a contact"<<endl;
	cout<<"S-save contact list to file"<<endl;
	cout<<"Q-quit"<<endl;
	cin>>menuChoice;
		if(menuChoice=='a'){
			addContact();
		}
		if(menuChoice=='d'){
			cout<<"Feature coming soon!"<<endl;
		}
		if(menuChoice=='s'){
			cout<<"Feature coming soon!"<<endl;
		}
		if(menuChoice=='q'){
			cout<<"Now quiting"<<endl;
		}
		if(menuChoice!=('a'||'d'||'s'||'q')){
			cout<<"Please choose an option from the menu"<<endl;
		}

	}
int main(){

printMenu();
}