Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ Moderated > How to declare ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 9502 of 9593
Post > Topic >>

How to declare the type in the class?

by slatp <songli9447@[EMAIL PROTECTED] > Apr 15, 2008 at 12:27 PM

Hi,
my problem below:

//1.h
class A
{
public:
        enum B{a,b,c};
};

//2.h

how to declare enum B?
class C
{
public:
       void func(A::B m);
};

Thank you very much!


-- 
      [ See http://www.gotw.ca/resources/clcm.htm
for info about ]
      [ comp.lang.c++.moderated.    First time posters: Do this! ]




 6 Posts in Topic:
How to declare the type in the class?
slatp <songli9447@[EMA  2008-04-15 12:27:54 
Re: How to declare the type in the class?
Chris Uzdavinis <cuzda  2008-04-15 23:21:52 
Re: How to declare the type in the class?
=?ISO-8859-1?Q?Daniel_Kr=  2008-04-15 23:22:24 
Re: How to declare the type in the class?
red floyd <no.spam@[EM  2008-04-16 04:13:18 
Re: How to declare the type in the class?
=?ISO-8859-1?Q?Daniel_Kr=  2008-04-16 11:34:14 
Re: How to declare the type in the class?
dizzy <dizzy@[EMAIL PR  2008-04-16 11:36:53 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Wed May 14 6:45:01 CDT 2008.