Z
zhi lin
hi, guys
I am doing a c program which need me to print out the error message during
the file input, suppose we need to read in a
struct {
int pid;
char *name;
char *skill;
}
I can not guarantee that the input filealways in the oder of pid, name and
then followed by skill in each line, for example,
1
someone
program
somebody
2
gaming
....
so how to I test the readin string's type id (especially the pid int type,
it is differ to other two strings type) in case I can return the error
message.
Thanks guys
I am doing a c program which need me to print out the error message during
the file input, suppose we need to read in a
struct {
int pid;
char *name;
char *skill;
}
I can not guarantee that the input filealways in the oder of pid, name and
then followed by skill in each line, for example,
1
someone
program
somebody
2
gaming
....
so how to I test the readin string's type id (especially the pid int type,
it is differ to other two strings type) in case I can return the error
message.
Thanks guys