Hi friends..i have doubt about C++ programming. How to give names for the elemetns in an array of objects...
brk235 0 Light Poster
Recommended Answers
Jump to Post
- you could have name as a non-static member in the class. this can be used to give a name to each object.
- you could use an enum or a variable to give a name (identifier) for a position in the array.
- you could create an alias (reference) with a name …
All 4 Replies
Traicey 10 Posting Whiz in Training
brk235 0 Light Poster
Agni 370 Practically a Master Poster Featured Poster
vijayan121 1,152 Posting Virtuoso
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.