I have no idea how to use these two. I tried for 2 hours. And I also read the c++ books, but no luck. Can some body start me out.
m7r23
0
Newbie Poster
Recommended Answers
Jump to PostWhat's your question?
[edit]
"An enumeration comprises a set of named integer constant values. Each distinct enumeration constitutes a different enumerated type."
Jump to PostOK, I will start with one. I will start with how do I use the type statement.
There is no "type" statement, and in the context of a typedef this still doesn't make the most sense to me.
In general I need to input two sets (of values) of user-defined …
Jump to PostHmmm. You want to use something like this?
typedef enum { positive = 10, negative = -10 } Sign;
[edit]As in...
#include <iostream> typedef enum { positive = 10, negative = -10 } Sign; int main() { int num; do { std::cout << "Enter …
All 9 Replies
Dave Sinkula
2,398
long time no c
Team Colleague
m7r23
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
m7r23
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
m7r23
0
Newbie Poster
m7r23
0
Newbie Poster
Dave Sinkula
2,398
long time no c
Team Colleague
m7r23
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.