Need help with simple code question PLEASE

Pages: 12
I gave him a partial answer, so he would have enough to figure out the rest... i.e. LEARN instead of just being told the answer...

I wrote:
Without doing your homework for you, this should point you in the right direction


Member function (partial answer) that should have helped him... I wrote:
1
2
3
void display() {
  std::cout << x[0] << std::endl;
}

I didn't write it all out since it was clear he didn't understand how to access private variables or for that matter, even create an object from his class. Obviously he didn't understand even how to loop through an array either, but again.... "point you in the right direction..."

Even if you disagreed with how I was helping him, you didn't have to be rude about it. Thanks.
Last edited on
HellfireXP wrote:
I gave him a partial answer, so he would have enough to figure out the rest... i.e. LEARN instead of just being told the answer...
This assumes that he is incapable of learning from a complete answer. When the answer is trivial, I give it in full. Obviously I don't complete entire multipart homework assignments.

I have had no intention of being rude to anyone here, sorry if you felt that way about one of my posts.
Topic archived. No new replies allowed.
Pages: 12