i thought it was already called in the class |
You keep saying things that are perfectly obvious to you, but are without context to those of us who are trying to help you. I have not idea what the above statement means.
Why don't you post the code that has the
cout << new_val << value << endl;
statements in it? Then there will be no ambiguity about what you mean, and we can show you exactly why your code is not doing what you expect it to. We can't tell you why your program doesn't output anything if all of the output statements are removed from the program that you posted.
Edit:
return output same thing to me |
I just figured out what you meant by this statement. I know I sound like an old fart, but capitalization and punctuation were invented to help us comprehend what is written. Without any, this collection of words (I would not call it a sentence) has a number of meanings.
I think you are saying that returning a value is the same thing to you as outputting a value. Not only is this not a true statement, it makes it harder for us to figure out what your question really is.
After reposting your code, please clarify what your specific question really is.