Raised This Month: $109 Target: $400
 27% 

Get amount of rows in enum


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
SomePanns
Senior Member
Join Date: Dec 2013
Old 05-25-2016 , 13:17   Get amount of rows in enum
Reply With Quote #1

So, I'm trying to figure out how to count the amount of "rows" there's in a specific enum.

For example:
Code:
enum EnumRows
{
VAR1=0,
VAR2,
VAR3,
VAR4
};
In this case, there are 4 "rows" in the enum, but how would I count that with a function?
SomePanns is offline
 


Thread Tools
Display Modes

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 04:03.


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