Good to know. Thanks!
Type: Posts; User: Ultraman
Good to know. Thanks!
I can't answer that last question (yet), but from one noob to another, I've got a suggestion and a question. Since you already have a "using" statement (using namespace std), you don't need to put...
Thanks to all of you. Now it works as it should (and better than that, I now get it).
And yeah, that 'return sum' was left over from an earlier exercise. Quite out of place, eh? Whoever edited the...
Hi,
I am trying out a recommended book, "C++ Without Fear," and am having a problem with one of the exercises in the book and on the cd.
The exercise states "Write a function named print_out...
Doh! :)
Thanks for the quick replies Desolation. All is now well.
Any numbers i enter, with the first being lower, of course. If I enter '1' and '20', the result is
'21'
If i enter '20' and '100,' I get
'101'
I just tried reversing my input by...
Or it might be a problem elsewhere?
I am doing an exercise from a recommended book, in which I am trying to get the program to print all numbers from n1 to n2 .
Here is what I have come up...