Hello,
I defined a list in a class and want to do a class containing get/set functions. How can I set or get a data struct (list element) that has variables of different type and each variable is taken separably as an input from the user (I do the input part in the main function, right?)
Thanks
kaydee123
0
Newbie Poster
Recommended Answers
Jump to PostI'm sorry, I'm having trouble understanding exactly what you are asking. If I am presuming correct, you want a data set within the class to be set by something (maybe std::cin function?) and then you can recall it later? You are going to want to make this data set "public." …
All 2 Replies
Reply to this topic
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.