int inputFile()
{
int choice2, file;
cout<<endl<<"\t**You Have Selected To Read From A File**\n"<<endl;
cout<<"Please Choose From The Following:";
cout<<"\n--------------------------------"<<endl;
cout<<"1. Enter a file name: "<<endl;
cout<<"2. Select file from a list"<<endl;
cout<<"3. Return To Main Menu"<<endl;
cout<<endl<<"Make A Selection From The Menu: ";
cin>>choice2;
if(file==1)
{
int i, j, x, y;
char plot[21][75] = {'.'};
plot[x][y]='+';
for(i=20; i>-1; i--)
{
for(j=0; j<75; j++)
{
plot[i][j]='.';
plot[x][y]='+';
cout<<plot[i][j];
}
cout<<"\n";
}
}
return EXIT_SUCCESS;
}
Athar, i think i gave you all the clues, to know what i am talking about, can you now help me ?? (the codes up here arent mine (other sites and forums i seeked because i cant find help here !?!))
Well. By looking at that example I can figure something out about the class CPlot... (oh, and relax please).
1 2 3 4
CPlot::title(/*Title of your plot*/);
CPlot::label(/*Indication of which label to change*/,/*the new value of the label*/);
CPlot::data2DCurve(/*Data for the x value of the points*/,/*Data for the y value of the points*/,/*Number of points*/);
CPlot::plotting(); //Plots your stuff.