- or download this
class A {
int ma;
...
A::A() : ma(666) {}
};
- or download this
#include "iostream"
#define class struct
...
std::cerr << a.ma << "\n";
a.printit();
}
- or download this
#include "iostream"
#include "toto.h"
...
A::printit() {
std::cerr << ma << "\n";
}
- or download this
$ g++ -c toto1.cc -o toto1.o
$ g++ -c toto2.cc -o toto2.o
...
666
666
$