Raised This Month: $ Target: $400
 0% 

Enum bits for menu options


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 09-08-2019 , 11:17   Re: Enum bits for menu options
Reply With Quote #1

Code:
128 - 1
Code:
127
Code:
126 + 1
Code:
sizeof(item) - 1
Code:
charsmax(item)
all of them works same ( in your case ) , but as you can see "charsmax(item)" is less hardcoded choice , and hardcoding is never welcome.

Last edited by LearninG; 09-08-2019 at 11:20.
LearninG is offline
Reply



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 17:29.


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