Search:

Type: Posts; User: wegonekilla

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,144

    Got a better picture of it now. Thanks for the...

    Got a better picture of it now. Thanks for the help.

    WGK
  2. Replies
    6
    Views
    1,144

    cout

    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...
  3. Replies
    6
    Views
    1,144

    I have changed the void to int including MAIN. I...

    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...
  4. Replies
    6
    Views
    1,144

    Returning a value from function : help!

    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...
Results 1 to 4 of 4