This is my code, I stripped it down to make it easier to help.
Code:
#include <iostream>
using namespace std;
void showTemps(int[], int);
int main()
{
int temp[10] = {32, 24, 29, 41, 60,
67, 78, 88, 93, 102};
int date[10] = {010106 , 012506 , 022006 , 031206 , 040706 , 042706 , 051506 , 060106 , 062706 , 072506};
int inputDate = 0;
int counter = 0;
cout << "Please input date(mmddyy): ";
cin >> inputDate;
showTemps(date, 10);
cin >> inputDate;
return 0;
}
void showTemps(int nums[], int size)
{
for (int index = 0; index < size; index++)
cout << nums[index] << endl;
}
so, it should output the numbers in the date array, right?
THis is what I get:
4166
5446
9222
12934
16838
17862
21318
24646
26054
30022
Also, it got upset with certain numbers when I was trying to put them into the array. such as 012906 wouldn't work, while 012506 will.