Hi !
I have a problem in passing enum values.
I have a class B.cpp as follow:
[code]
enum book{
novel,
digest,
magzine
};
// And a function which receives this values:
void details(int price,enumtype);
}
[code]
This function is called from another A.cpp as follow:
What should I write in "enumtype" so that It correctly pass and called function I can check values directly as :Code:B *b; b->details(123,enumType);
[code]
if(novel)
{
//Do Something
}
if(digest)
{
//Do Something
}
etc
[code]
Thanks



LinkBack URL
About LinkBacks


