Originally posted by: trilobyte
Ug, now it seems to give me segmentation errors whenever it wan'ts to (when I try to access the last name)
here's the links:
book.c
bookMain.c
Originally posted by: trilobyte
Ug?? HOW THE HELL! I get segmentation errors :/
can you paste your makefile?
Originally posted by: trilobyte
What's that a.out*?
Originally posted by: trilobyte
Hrm, my linux box doesn't seem to output any a.out from gcc, nor does the unix system at school. lemme try cygwin
Originally posted by: m0ti
well, here's at least one of your problems:
it's a fairly common mistake that's made by programmers in C (especially when going back from C++/Java):
typedef char* string
...
string first, last;
what this translates to is:
char* first, last;
which in C is:
char* first;
char last;
The * is ALWAYS only applicable to the first one.