I have these functions:
read(){
}
write(){
}
main(){
cout << "This is a menu so you can choose what to do";
}
Its actualy more complicated than that but that example will do fine for you to help me.
I just want to be able to for example write, then go back to the menu, then choose to read etc
I cant do :
read(){
main();
}
main(){
read();
}
because main was not declared before read, so then I move main above read and read was not declared before main.
Exactly this program is an agenda, so that I can creat schedules and manage events (write) and just see my calendar with all the events or just see my schedules (read). I want to be able to go from main to read, then to main again then to write you know
I think I could separate these functions into different files but I dont know how to call a function from another file.
Any help?