Raised This Month: $ Target: $400
 0% 

"structs" and enums...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Zenith77
Veteran Member
Join Date: Aug 2005
Old 04-28-2006 , 15:58   "structs" and enums...
Reply With Quote #1

In the plugin I am creating, I'm using enums to simulate a stuct.
What I want to know is how can I put an enum inside an enum without the compiler crashing, if its even possible.

Example: Lets say you want have a "struct" that stores a player's FPS, and rate it "high", "medium", "low".

Code:
enum FPSRating {        frHigh,        frMedium,        frLow }; enum PLFPS {       pfFPS };

and then I want to make pfFPS "rateable" by doing this...

Code:
enum PLFPS {       FPSRating pfFPS };

How can I do this without the compiler crashing?

--Zenith
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode