Hi everyone, I'm a Java developer wanting to learn some C++. Now in Java you can call a method when you want, also before its declaration. Normally you can't do this in C++, but is there a way to tell the compiler to look for the called function in the whole file, instead of throwing an error?
and then tell the compiler (eg. through a switch) to look for "function" when it finds it in "main". I'm quite sure there is no way to do this, but I cannot understand why... it doesn't seem very difficult to me