Before I go any further, I just want say yes, this is the same code from my last post, and no this isn't a repost. Now that I know that I need a loop in my code, all I need to know right now is where to put the loop. The only reason I'm not asking this in my previous thread is that everyone seemed to have lost interest in that one.
As I said before in this thread, and in my previous thread, all I need to know right now is where in my code do I need to put a loop.
#include <iostream>
#include <iomanip>
#include <cmath>
#include <string>
using namespace std;
int main()
{
//declare array
int temp[7][2]= {0};
int day = 0;
const int lowtemp = 0;
const int hightemp = 1;
//enter data into array
cout<<endl<<"Enter Day: ";
cin >> day;
cout << "\nEnter low temperature: ";
cin >> temp[day][lowtemp];
cout << "\nEnter high temperature: ";
cin >> temp[day][hightemp];
//test
cout << "\nDay: " << day << " High: " << temp[day][hightemp] << " Low: " << temp[day][lowtemp] <<endl;
system("pause");
return 0;
} //end of main function