|
From: Dondolo M. <MDo...@OL...> - 2002-12-31 10:26:59
|
Hi all,
I am wiggling my way around C++ currently, I am not doing a bad job at all.
(Well at least I think)...I am trying to write a simple telephone directory
system that will store all my buddies contact details. I intend on storing
their info in separate functions. for example:
void
MarkContact(void)
{
//Marks contact details
}
and so on.....
I want to be able to open the program, enter someone's name and get their
stored details. The problem I get is when evaluating my input, I get
errors....c++ permits me to evaluate a single character but not string of
characters.
e.g.
/*
all include files
and declarations
*/
cout<<"Please enter a persons name";
cin<<Name;
switch(Name)
{
case Mark:
MarkContact();
break;
//the rest of the program
can someone please help me or advise me of any other method.........
Thanks guys
|