Thanks Salem that was too easy.. I didn't want to make a class since this needs to be portable to other programs.
Type: Posts; User: Ozor
Thanks Salem that was too easy.. I didn't want to make a class since this needs to be portable to other programs.
P.S.
I dont want to make it a global variable that is why it is not located in outside of main. This function need to set a few variables and I want to be able to call it from a header.
I wrote a function that randomly sorts and array of integers. I want to set an array in my main() to equal the randomly sorted array in the function.
ok I have been trying to figure this out on my own for the longest time and am finally giving up. Im tyring to have set an array equal to a function. Here is a simplified version of what im doing.
...