www.digitalmars.com         C & C++   DMDScript  

c++.dos.32-bits - enum by the size short

reply "ZaitcevE.V." <Genior km.ru> writes:
How to make a type enum by the size of 2 bytes (short)?
Nov 15 2001
parent Jan Knepper <jan smartsoft.cc> writes:
It does that only in 16 bits mode.

If you need to store them somewhere, assign the enum to a
'short'.or 'unsigned short'  Make sure the values are betwen 0
and 65535 though.

Jan



"ZaitcevE.V." wrote:

 How to make a type enum by the size of 2 bytes (short)?
Nov 16 2001