Recent content by Colton0117

  1. C

    MHB C Function Help - Solve Issues with Void Function

    I have fixed that issue, although that was just a typo and not my actual problem.
  2. C

    MHB C Function Help - Solve Issues with Void Function

    I am having issues making my function work. If there is not a void function included, my program works as intended but sadly I need to have a function. I am at a loss as how to implement this type of function. The requirements are below and any help asap would be GREATlY appreciated! Write a...
  3. C

    C/C++ Normalize Array w/ C++ & Max of 60 x's

    I need to normalize an array, I find the max value which can be any integer. I have to output this number using cout and represent it as 'x' how ever many times. The catch is I can only have a max amount of 60 x's. If my max is 500 I need to display it as 60 'x' and normalize my whole array to...
  4. C

    C/C++ Why Isn't My C++ Function Passing By Reference Correctly?

    Thanks, the issue was the void it should be: void CoordTransform(int x ,int y ,int& xValNew,int& yValNew) needed the & after the int
  5. C

    C/C++ Why Isn't My C++ Function Passing By Reference Correctly?

    Define a function CoordTransform() that transforms its first two input parameters xVal and yVal into two output parameters xValNew and yValNew. The function returns void. The transformation is new = (old + 1) * 2. Ex: If xVal = 3 and yVal = 4, then xValNew is 8 and yValNew is 10. My code...
Back
Top