0

write a c++ class run that contains followin data member
1)name of runner.
2)distance covered by runner.
class ha following member function
1)get function for input runner name and distance.
2)show function to display runner name and distance.
the user should be able to show the name of the runner who has
covered the longest distance at any point of time. HINT(use static data member).

i can not understand that how to use static data member in this programe. PLZ help me.

3
Contributors
2
Replies
18
Views
3 Years
Discussion Span
Last Post by Kristian_2
0

This is a terrible use for a static data member.

That said, someone gave you code already in the other thread.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.