how call the function in the main program? |
min_max( the_size_of_the_array, the_array, min_value, max_value);
PLEASE ALWAYS USE CODE TAGS (the <> formatting button), to the right of this box, when posting code. Along with the proper indenting it makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/ http://www.cplusplus.com/articles/z13hAqkS/ Hint: You can edit your post, highlight your code and press the <> formatting button. You can use the preview button at the bottom to see how it looks. I found the second link to be the most help. |
the program doesn't display what it should. |
citire(n,a);
may be a function to input the numbers, but since it is missing I am not sure.
|
|
n
by reference to citire() so the value gets set in main() too.
|
|