The database that i need to use is in chronological order by presidents names.The chronum is what number president the particular individual was.The pointer(next prez) filed links a president to his successor.THe problem I am having is it is telling me that"error C2228: left of '.pname' must have class/struct/union"or"error C2228: left of '.chronom' must have class/struct/union"Thanks for the help
In C++ it is best to define the struct, then define the variable of the struct type separately. Why you did is common in C (and therefore legal in C++), but probably inappropriate for C++. That's because in C++, struct is a type-definition just like class.