Maximum and Minimum in Arrays

Can anyone tell me how exactly to find the maximum and minimum value within an array, along with the maximum and minimum positive value and negative value? If there are no negative numbers in the array, I just cout "No negative values" and just the opposite if there are no positive values. Also, how would I prompt the user to hit enter after displaying 6 lines of numbers to continue the rest of the display? Also, how would I keep count of the total number of files processed? Any help is greatly appreciated.
This is what I have so far for the maximum and minimum part.

@Catfish4
I agree it's not a problem for homework assignments, but if you write bad, problematic code when you're learning how to write code, then you may carry on those bad habits. If beginners learn to use a better way of doing it, std::cin.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); now, then they'll remember it later if they ever need it.

Indeed. Its purpose is that the user learns something. And what do they learn now? To use system()?

By system("PAUSE"); they learn a quick, and easy, and sane way to pause the program, that is, without resorting to cryptic input stream hackery.

And I do believe that by the time they program professionally, they will not only unlearn using system() through means of learning why it's bad, but they will also grow out of wanting to pause the program for the user altogether. Share my optimism!

Okay, I've tried using system() and it works fine. The only problem is I'm not sure how to stop it after the first six lines exactly. The way I have it now stops it after the whole array and I tried putting it in the for loop, but that stops it after the first number. I have a feeling I'm going to need another for loop somewhere. Here's what I have now.

One immediate mistake I see in your above code is that you don't initialize pause.
This means that until you assign a value to it, it can randomly have any value.
(Of course in practice it is likely to have the value false, but the idea is you can't rely on this.)

bool pause = false; // initialization

The only problem is I'm not sure how to stop it after the first six lines exactly. The way I have it now stops it after the whole array and I tried putting it in the for loop, but that stops it after the first number.

Lines are horizontal and columns are vertical.
This means that basically i is the columnCount (which renders the latter useless).
So instead of columnCount, you could use a lineCount, which you increase every time you get to a new line.

Is there a certain library required to do the "numeric_limits<streamsize>::max()" because I can't get it to compile. It says "numeric_limits was not declared in this scope" along with many other things.

It's true that ignore is meant to clear the input stream rather than pause the program, but that line stops the program from continuing until the user uses the ENTER key (effectively pausing the program).

I agree that if the OP ever does anything with programming, they'll probably never need to pause the program, so either way will probably be a waste of time anyways.

I agree that if you're developing for yourself or just doing homework, it doesn't matter what method you use to pause (nobody really cares).

I just feel that if the need to do this again ever arises, then the OP will be better prepared if they follow the safer/better coding guidelines than if they use system and something happens they weren't expecting because of the way system works.

It's true that ignore is meant to clear the input stream rather than pause the program, but that line stops the program from continuing until the user uses the ENTER key (effectively pausing the program).