#include
#include
#include
#include
using namespace std;
// C-style structure
struct myStruct {
int a;
char c[16];
myStruct(int x, const string & y) : a(x) {
cout << "myStruct constructor" << endl;
strncpy(c, y.c_str(), y.length() + 1);
}
void dump(unsigned int x=16) {
cout << endl << "myStruct: a=" << a << " c=" << c << endl;
char * ptr = (char *) this;
for(unsigned int ii=0;ii