Is there any way to reference classes/methods in one file where the order of them wouldn't matter? My question might look weird but I will present example: I must include all code in one source file (I know it's really unhandy) for entry so for example:
class One{
public:
float methodOne(){
return multiply(10, 20);
}
};
float multiply(float a, float b){ return a * b; }
to reference multiply I would need to move it over the method that reference it but with more classes and methods it starts to become impossible so is there any other way to do this than moving methods over?
*edit i forgot to add the main problem that the methods are using classes which causes the mess