Click to See Complete Forum and Search --> : Test All


GNUbie
July 26th, 2003, 06:52 AM
www.codeguru.com (http://codeguru.com)

CodeGuru's (admin@gnubie.com)

#include "addressbook.h"

void main()
{
AddressBook sample;

int option;
string item;

while(true)
{
cout << "Do what?: " << endl
<< "1) Insert" << endl
<< "2) Delete" << endl
<< "3) Search" << endl
<< "4) Print" << endl
<< "5) Exit" << endl;

cin >> option;
sample.clear();
switch(option)
{
case 1: sample.addContact();
break;
case 2: sample.deleteContact();
break;
case 3: sample.searchContact();
break;
case 4: sample.printContact();
break;
case 5: return;
default: break;
}
cin.ignore();
cout.flush();//Tweak to stop crashing
cout << endl;
}
}


aethsthj
ssthstrh
trhsrthsr
[/list=1]

[list=a]
bsethstrhstr
srthsrthrt
rthsrth
srthrt
[/list=a] [list]
rtshsrth
srthsrthsrt
srthsrthsrt
rthsrths
srthsrth
What?

raven_writer
August 17th, 2003, 07:04 PM
echo("w00t!, I'm $l337!");