When compiling more than one file at once, do you have to put the include statements in all the files that need them, or just the main? Example: Can you do this:
Or would each file have to include <cmath> ? ThanksCode:FILE 1: class A { public: int a; A() { a = sqrt(3555); } }; FILE 2: class B { public: int b; B() { b = pow(3344, 4) } }; FILE 3: #include <iostream> #include <cmath> using namespace std; int main() { A a; B b; cout << a.a; cout << b.b; }!