ok i have encounter with another problem plz help. I have to write a structure progame that have two char of arrays one for first name and one for last name a character variable to store the middle initial and an integer variable to store the age. here what i got so far
#include <iostream.h>
struct Name
{
char FirstName[20];
char MiddleName;
char LastName[20];
int Age;
};
ok the problem is i have to pass structure name to a function named FillStructure and fill it there. Anyone know how. i keep looking my school book and deosn't help.
there are pointers in the sense that you can get a variable/function address and hold that in another variable, but there's none of that convenient pointer arithmetic