Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
Problems with user input functions
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 · ·