OK here's what I have so far. I have it accepting input from the user. But i"m getting lost when it comes to accessing the arrays.
Code:
#include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int day = 0;
int temp = 0;
int *numDay = new int[day];
int *temps = new int[temp];
cout << "Enter the amount of cities you would like to view: ";
cin >> day;
for (int x=0; x<day; x++)
{
cout << "Enter a temp: ";
cin >> temp;
}
if (numDay[x] == day)
{
numDay = day[x];
temps = temp[x];
cout<<"day[x]: " <<"temp[x]: ";
}
}
am I anywere in the ballpark?