thats simple... You cant just use '=' to give some value to a string of char like you would in some other language because normally they use overloaded operators...
Well, use this simple function:
Code:
char *cpy(char *target, char *source){
char *start = target;
while(*source)
*target++ = *source++;
*target = 0x00;
return(start);
}
like this in your code:
Code:
int main (void)
{
int a;
band matt;
matt.age = 14;
printf("%s", cpy(matt.instrument, "Something")); // see?
getchar();
return(0);
}
You could make a class "String" and overload the '+' operator, but I can see that its beyond your current level...
Ps: what you're doing is much more C than C++