It's something like this:
When the program gets to the iofile line, segmentation fault. I was never good at pointers. What am I doing wrong?Code:MyStruct *mystructvar; cin << mystructvar->value; file >> mystructvar->value;
It's something like this:
When the program gets to the iofile line, segmentation fault. I was never good at pointers. What am I doing wrong?Code:MyStruct *mystructvar; cin << mystructvar->value; file >> mystructvar->value;
Man, that's all? Now I'm embarrased that I spent an hour trying to fix this problem before I posted here.
I knew that. I did, honest.
Thanks for the help, by the way.