// tstsptr4.cpp - test performance of smart pointer array #include #include "sptrs.hpp" void main() { const int imax = 1000; struct testStr { int x; double y; char z; } test; testStr *cppPtr = &test; int i, j; for(i=0; ix = 1; cppPtr->y = 2.5; cppPtr->z = 'z'; } }