C99 standard prog buggy with Linux but not Windows
Hello all. I've run into a problem I just can't figure out and I'm beginning to think it's my compiler. I'll attach the source file, it's rather long to post on this message. The problem is when get_data() is called from main() the first input (Enter First Name)is skipped completely. But when get_data() is called from continue_function(), it runs fine. There is also a problem with display_report(), but I'm not too concerned about that now; I think both problems are related.
I have no idea what the problem is. The strange thing is it runs-bug free on my friend's windows system (compiled with dev-c++), but is buggy with my Linux system.
Thank you all in advance!
P.S. This is a "type-and-run" program in book I'm trying to learn from. It's just basically a long program at the end of the chapter to pull together everything learned so far. It's supposed to collect information (you can see what sort of information in the struct before the start of main() I've replaced a few things, such as the gets() functions with fgets().