Hi, how can I make this work? Thanks
Code:struct record { int empID; char first[15]; char last[12]; }; char *inData[7]; rec.first = inData[2]; //I need this work but it doesnt.
Hi, how can I make this work? Thanks
Code:struct record { int empID; char first[15]; char last[12]; }; char *inData[7]; rec.first = inData[2]; //I need this work but it doesnt.
You need to copy strings one character at a time. There's a handy-dandy built in function that does this sort of thing: strcpy.
Quzah.
Hope is the first step on the road to disappointment.