// mod1.cpp - demonstration module // prologue goes here #include #include "mod1.h" using namespace std; double myfun(mystruct ms) { return ms.y; } #ifdef TEST_MOD1 void main() { mystruct ms = { -1, 3.1415927, 'z' }; cout << myfun(ms); } #endif