Recent content by Colton0117
-
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.- Colton0117
- Post #3
- Forum: Programming and Computer Science
-
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...- Colton0117
- Thread
- Function
- Replies: 3
- Forum: Programming and Computer Science
-
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 count 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...- Colton0117
- Thread
- Array C++ Normalize
- Replies: 2
- Forum: Programming and Computer Science
-
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- Colton0117
- Post #3
- Forum: Programming and Computer Science
-
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...- Colton0117
- Thread
- C++ Function Reference
- Replies: 3
- Forum: Programming and Computer Science