problem in passing by referenceYou don't provide enough code or information to really hazard a guess, but you do have undefined beh...
Array and While Loop[code]int input(int number)
This is illegal in C++.
functionsThe variable [tt]z[/tt] in [tt]input[/tt] is not the variable [tt]z[/tt] in [tt]output[/tt].
q: abt static-cast functionSee: http://stackoverflow.com/a/5563131
Range For Missing Begin FunctionBoth lines 81 in the original post and 11 in your second post have an extra [b]m)[/b]. Look far to ...