Write a c++ program that stores the following numbers in the array named miles:15,22,16,18,27,23, and 20. Have your program copy the data stored in miles to another array named dist, and then display the values in the dist array. Your program should use pointer notation when copying and displaying array elements.
This is what i have so far...
#include <cstdlib>
#include <iostream>
using namespace std;
int main()
{
int i = 7;
int *dist;
int i = {15,22,16,18,27,23,20};
Idk if im doing this right...
Please help?
Thanks!