Hi, i need some help, i'm stuck with a program that takes that takes 4 object, sorts them out and prints them. I'm using pointers but now i'm stuck because i cannot out see what i'm doing wrong. I have a felling that at some point i'm not passing the value(s) but just can't figure it out.
losh177
0
Junior Poster in Training
Recommended Answers
Jump to PostYou haven't said what's actually happening.
What is it doing wrong?
Is there any error messages?
Jump to PostYou need to set the rankList pointers to NULL in Ranker's constructor.
You need to remove the ampersands in front of name in Competitor::print.
You should have destructors for Competitor and Ranker since they both dynamically allocate some storage.
And you don't need the (double) in this …
All 5 Replies
losh177
0
Junior Poster in Training
nucleon
114
Posting Pro in Training
losh177
0
Junior Poster in Training
nucleon
114
Posting Pro in Training
losh177
0
Junior Poster in Training
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.