//Displays all information
for(int a = 0; a < ptrClubs[i].officers[j].numofInterests; a++)
{
printf("%s,",ptrClubs[i].officers[j].Interests[a]);//<--problem
}
it's a array of cstrings, but i can't figure out how keep it from outputting garbage, i'm assuming it's because i didn't end it with a null terminator but when i did, it didn't work Thanks for any suggestions
You're right, it is a problem. This isn't legal C++. You might want to turn off the compiler extension that allows it. It doesn't work because one dimension of your two dimensional array is 0.