I also included a two-dimensional array which is storing the number of miles each runner ran per day.
7 numbers so 7 days.
I am really just trying to get program to read the runners names and output their run times for that day.. having a real hard time, I think I am making progress from where I first started.
#include <iostream>
using namespace std;
int main()
{
char runnerName[5][7]={"jason","samantha","ravi","sheila","ankit"};
double milesDay[5][7]={1,2,3,4,5,6,7},{2,4,6,8,10,12,14},{3,6,9,12,15,18,21},{1,1,4,4,7,8,10},{5,5,5,5,5,5,5};
for (int i=0; i<5; i++)
{
cout << milesDay[5][7] << " ";
}
system("pause");
return 0;
}

New Topic/Question
Reply




MultiQuote






|