all right, i'm still working with this project that simulates an agenda..the problem now is that i'm working with the MAIN, and there are certain functions that need an index in order to do what they are ment to do. For example, i've got a function called modifyAT, which modifies at a certain place, in order to do that i need an index, but i don't know how to get that index from the user...
i have like three other functions using the same thing and i've got no idea how to use them properly..if someone could please help me with this.
Rather than getting the index from the user it may be easier for the program to supply the index and the user to make the choise.
Something like this may serve.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
int main()
{char D,M;
cout<<"Press D to call the draw() function\n";
cout<<"Press M to call the modify() function\n;
etc.
cin>>function;
D=int draw(int,int,int)
{
//function details go here
}
M=char modify(char,int)
{
//function details go here
}
}