Can't get my user input to print.
For some reason it runs just fine until I get to the print function where it prints the everything but the input from the cin I did. It needs to look like this.
cin.ignore(); and down and just spits out this.
With no values added to them. Any help would be appreciated in regards to what is causing this.
<< "*                    YANOVICH’S  MEDICAL CENTER                   *"
<< "*                     Building #7,  Room #701B                     *"
<< "*                    1333 South Prospect Street                    *"
<< "*                     Nanticoke, PA 18634-3899                     *"
which I assume sets information for them. But you declare these objects FIRST before the user will input anything to these variables. In actual, you are just passing along nothing into the objects because the user hasn't entered anything at all yet.
I would say the fix to this is a simple reordering of your code.
Thank you my man I can't believe I made such a simple error and couldn't figure out so really thank you.