What is the correct syntax for having function implementation in a separate file? For example:
foo.h
int Multiply(const int Number);
foo.cpp
#include "foo.h"
int Multiply(const int Number)
{
return Number * 2;
}
I see this used a lot, but when I try it I get an error having to do with a missing main() function. I get the error even when I try to compile working code.