Hi,
i have created a program that displays a few x-axis and few y-axis positions of a ball that is thown into the air.
the user has input angle and velocity.
Iam stuck on how to enter these results into a 2D array.
here is the part of the program wihich is collecting the results and (trying) to put in the 2 dimensional array to display and then to plot a graph.
can anyone point me in the right direction. iam stuck.
thanks heaps,
for (int j=0; j<=6; j++)
{
v = vsinx - (grav * timeint);
timeint1 = timeint + 1;
timeint = timeint1;
s2 = sy + (v * timeint);
sx2 = vcosx * timeint;
sx = sx2;
for (int b = 0; b <= sy; b++)
for (int c = 0; c <= sx; c++)
for (int d = 0; graph[b][c]; d++) \\trying to store into graph[b][c] sx=xangle
cout << graph[b][c];
cout << BLANK;
cout << STAR << "\n";
}
}