cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Is the enumeration always be used ?
Is the enumeration always be used ?
Feb 23, 2013 at 1:09pm UTC
alantheweasel
(24)
i dun understand what the enumeration is used for ?
Feb 23, 2013 at 1:11pm UTC
vlad from moscow
(6539)
For introducing meaningful names instead of magic values.
Last edited on
Feb 23, 2013 at 1:12pm UTC
Feb 23, 2013 at 1:17pm UTC
alantheweasel
(24)
What is the functional differences between enumeration and "struct"
Feb 23, 2013 at 1:20pm UTC
vlad from moscow
(6539)
Structures can have members of any types plus methods. Enumerations have only enumerators that is named constants.
I think you should open at least one book on C++ instead of to bother the forum.
Last edited on
Feb 23, 2013 at 1:21pm UTC
Feb 23, 2013 at 1:32pm UTC
alantheweasel
(24)
yup , i am reading "C++ Primer Plus 6/e"
Feb 23, 2013 at 3:54pm UTC
Disch
(13742)
To put it plainly, structs house variables. Whereas enums house constants.
Topic archived. No new replies allowed.