While curising the C string tutorial on this site, I found a set of variables resembling my struct. Here is what I found:
...and here is my struct:Code:char name[50];
char lastname[50];
char fullname[100];
...and here are my questions:Code:struct contacts
{
string firstName;
string lastName;
string companyName;
string homeAddress;
int id_number;
int age;
};
1: Should I use string or the char arrays for what I am doing (storing names)
2: Why or why not? -memory use advantages, etc anything that may apply