heres the question
Write a function that takes in a 2D array and display a graphical plot of the data. The graph should be Strength (Y-axis) vs Time (X-axis).
CODE
#include <iostream>
using namespace std;
void main (void)
{ char graph [10][10]= {
{'-' , '-' , '-' , '-' ,'-' , '-' , '-' , '-' , '-' , 'x' } ,
{'-' , '-' , 'x' , '-' ,'-' , '-' , '-' , '-' , '-' , '-' } ,
{'-' , '-' , '-' , '-' ,'-' , '-' , '-' , '-' , 'x' , '-' } ,
{'-' , '-' , '-' , 'x' ,'-' , '-' , '-' , '-' , '-' , '-' } ,
{'-' , 'x' , '-' , '-' ,'-' , '-' , '-' , '-' , '-' , '-' } ,
{'-' , '-' , '-' , '-' ,'x' , '-' , '-' , '-' , '-' , '-' } ,
{'x' , '-' , '-' , '-' ,'-' , '-' , '-' , '-' , '-' , '-' } ,
{'-' , '-' , '-' , '-' ,'-' , '-' , '-' , 'x' , '-' , '-' } ,
{'-' , '-' , '-' , '-' ,'-' , 'x' , '-' , '-' , '-' , '-' } ,
{'-' , '-' , '-' , '-' ,'-' , '-' , 'x' , '-' , '-' , '-' } ,
};
for(int b=0; b<10; b++)
{
for(int c=0; c<10; c++)
{
cout << graph [b][c];
}
cout << endl;
}
system("Pause");
}
i dont even think its right need help asap