#include "point.h" void main() { // Correct, but confusing: // suggests that p is somehow involved: Point p; p.set_origin( 0, 0 ); // Better: Point::set_origin( 0, 0 ); }
Demo: download and run this EXE, then click