// main_static.cpp // demonstrates static data and functions #include "static.h" void main() { cout << "Total widgets = " << widget::get_total() << endl; widget w1, w2, w3; // create and initialize widgets cout << "w1=" << w1.get_number() << endl; cout << "w2=" << w2.get_number() << endl; cout << "w3=" << w3.get_number() << endl; cout << "Total widgets = " << widget::get_total() << endl; }