So C++ won't let me use a function physically above where I declare it (in other words, the function must be on a smaller line number than its use). My problem is my functions all depend on at least one of the others. In other words:
void funct1()
{
if (something is true)
{
funct2();
}
else
cout << someResult;
}
void funct2()
{
if(something is true)
{
funct3();
}
else
cout << someResult;
}
void funct3()
{
if (something is true)
{
funct1();
}
else
cout << someResult;
}
}
In other words, each function needs to call one of the others in some cases. This will not work regardless of what order I put the functions in because at least one depends on something below it. How do I make the compiler look below the current function when compiling (i.e. read everything then decide what is valid) I am using g++ on CodeBlocks.