Re: Using a Class as parameter
- From: "Bruno" <brunopiovanREMOVETHIS@xxxxxxxxx>
- Date: Wed, 29 Jun 2005 02:30:03 -0300
I moved it to a new file and it is workig ok now, thanks!
Bruno
"John Carson" <jcarson_n_o_sp_am_@xxxxxxxxxxxxxxx> wrote in message
news:%23smIJpGfFHA.3656@xxxxxxxxxxxxxxxxxxxxxxx
> "Bruno" <brunopiovanREMOVETHIS@xxxxxxxxx> wrote in message
> news:e7Hvz7EfFHA.1044@xxxxxxxxxxxxxxxxxxxx
>> I have #include "perry.h" in level.h because I use an enum from
>> perry.h
>> and I have #include "level.h" in perry.h because I use a class from
>> level.h.
>> I think, should I create a new file for the enum then?
>
> There are lots of technically possible solutions. You could put the enum
> in a separate file, you could move the enum to level.h, you could use a
> forward declaration in perry.h for CLevel, you could combine perry.h and
> level.h into a single file or ... Which of the technically possible
> solutions is best is a design issue and I don't know enough about your
> application to know what would be good design (which is, in any case, a
> somewhat subjective judgement and one that I am generally reluctant to
> make).
>
> --
> John Carson
.
- References:
- Using a Class as parameter
- From: Bruno
- Re: Using a Class as parameter
- From: benben
- Re: Using a Class as parameter
- From: Bruno
- Re: Using a Class as parameter
- From: benben
- Re: Using a Class as parameter
- From: Bruno
- Re: Using a Class as parameter
- From: John Carson
- Re: Using a Class as parameter
- From: Bruno
- Re: Using a Class as parameter
- From: John Carson
- Using a Class as parameter
- Prev by Date: Re: Using a Class as parameter
- Next by Date: Printing More than One Page (with graphics)
- Previous by thread: Re: Using a Class as parameter
- Next by thread: Why need two checksums calculated?
- Index(es):
Relevant Pages
|