Hey guys, I am using scanf() to input values for a structure and it does this weird thing where it will "skip" input lines. I have no idea why this is happening. Here is my code:
I have about 9 input statements just like this one. They are one after another with combination of string and integer inputs. I don't feel like typing them all out. It's supposed to be input for a patient being admitted to a hospital.
Heres my output:
Name: Lawrence Aiello
Date of birth: Date of your last physical:
Height (in inches): Weight (be honest!):
See how it skips date of birth and height? I need help fixing this I have no idea what to do. Thanks in advance.
0 · ·