Assigning values to chars in structs - c

Posted by mrblippy on Stack Overflow See other posts from Stack Overflow or by mrblippy
Published on 2010-04-21T01:21:36Z Indexed on 2010/04/21 1:23 UTC
Read the original article Hit count: 217

Filed under:

Hi,

i have been having trouble getting my head around allowing a user to enter words into structs. the struct i am using is below

struct class
{
char class_num[4];
char *class_name
}

if anyone could point me how to do this or at least point me in the right direction that wuld be great. thanks

© Stack Overflow or respective owner

Related posts about c