I have quite a big problem!
I have to make an array in one function (NOT MAIN!!!) that does not return the array, but just the average value of its elements to main.
Then, I have to use elements from the same array to calculate other values form them (can also be in main).
Is that possible at all?
How can I reach array from function f (not main) if the function f is not returning array?
he made it quite clear that it cant be in main and i did put it in a function
oh haha thats my bad im kinda drunk i meant to take out the int main and just put the body into a function but i was actually talking to enemy
Last edited on
What is happening with DataSet in main?
I ment, I have array declared and INITIALISED in function, then I want to translate the whole (full!) aray into main, with all the elemnts values, like in function...
or at least, to call elemets from array in function in main...
I can do the opposite (call elements from main-array in the function.
Please, am the ABSOLUTE beginner, I appologise
declare the array global(i know that it is a really bad idea but situation demands it....).
Y, u are right, not best idea but practical if it goes.
Maybe some examples, as simple as possible?