Okay, I have been working on this program for about a week now. I can't seem to figure out how to get this to look like I want it to.
This is a 2-dimensional array with 2 rows and 12 columns.
CODE
const int cMax_Rows = 2;
const int cMax_Cols = 12;
using namespace std;
void getdata (int table[] [cMax_Cols])
{
for (int row = 0; row < 1; row++)
for (int col = 0; col < cMax_Cols; col++)
{
cout << " Enter high temperature for each month";
cin >> table [1][col];
}
return;
}
I want the output to look like this:
Enter high temperature for each month
(with the 12 integers under here)
The second row is for low temps, but I want to figure out the first part before I go to the next.
My output right now looks like this:
Enter high temperature for each month (int enter)
Enter high temperature for each month (int enter)
and so on for the 24 inputs.
Any help is greatly appreciated.
This post has been edited by Dark_Nexus: 4 Dec, 2006 - 10:16 PM