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
Static help
Static help
Oct 28, 2011 at 7:35pm UTC
ratboid
(2)
If I have a class with an ID and a static ID, which increments in the constructor of each object, How can I create an function that can get any object's values based on its ID?
Oct 28, 2011 at 7:39pm UTC
Athar
(4466)
By storing the objects in a container and giving the container that particular function you want.
Topic archived. No new replies allowed.