i'm about writing some code and i stuck on this problem. I have a bunch of functons which i want to call them. But there is a problem.
Example: there is a main routine and before main routine i define all my routines which i want to use them. But compiler disagree with the order of how they are written. But i cannot change this order because some of routines i call them inside other routine, if you understand what's the problem. How to solve this problem.
There is a example what's the problem:
Code: Select all
routine2()
{
do something;
routine3();
}
routine3()
{
do something
routine1();
}
routine1()
{
do something;
routine2();
}
main()
{
do some thing;
routine1();
}