Got a better picture of it now. Thanks for the help.
WGK
Type: Posts; User: wegonekilla
Got a better picture of it now. Thanks for the help.
WGK
cout << "The sum is " << compute_sum(n) << endl;
It works!
Still confused but logically the value of compute_sum after completion is 55 so therefore the reference in the cout statement pulls...
I have changed the void to int including MAIN. I used the RETURN after the while loop has concluded through a quick COUT, the value of SUM is 55. Why MAIN is not picking it up is the next big...
this is driving me nuts.....the object is to generate the sum of numbers 1-10. that number, which is 55, is generated with the function COMPUTE_SUM.
The data does not display correctly as SUM...