Structure

  • Thread starter Thread starter ArtPedUK
  • Start date Start date
A

ArtPedUK

I want to know if is possible I use on enumerator as a
datatype in a structure and If some one can send to me an
example that will be great.


Thank's


Artur
 
Hi Artur,

I assume you meant the enumeration type.
Or did you mean to say whether you'd like to use an enumerator ?
Please let me know.

If its the former, you may include the enumeration as a member
just like the regular class.

public enum Temperature
{
Hot,
Cold
};

public struct MyStruct
{
public Temperature TodaysTemperature;
};


Regards,
Aravind C
 
Back
Top