That did it! Thank you so much!
It's strange, I ran his code in a different project and it worked fine the way he had it. But in my code I have to put the ignore before every chunk of getlines...
Type: Posts; User: boblablabla
That did it! Thank you so much!
It's strange, I ran his code in a different project and it worked fine the way he had it. But in my code I have to put the ignore before every chunk of getlines...
I mean it skips the geline(cin, name) not the following cin.
I used the cin.ignore()
maybe I am missing something
cout<<"Please enter the following information:"<<endl;
When I use getline the same exact way you are using it, it completely skips it like there isn't even a cin there. I saw on other places online they use it the same way too. It doesn't cause an error...
Could you give an example with my particular situation?
So I am creating this code on Dev C++ to cin a information about an employee that will later be output to a text file. It includes Name, ID number, Phone Number, Address, etc.
Address will...
Awesome! Thank you so much for responding so quickly. I actually tried the || on those to save lines earlier and it wouldn't work for me because I forgot to type employeeType == for both of them and...
I spent an entire week trying to figure out how to do this correctly and I finally got it, only to find that I have to put it into custom classes. Then I spent the entire past week trying to do it...
I am trying to make a program that
1) Ask how many positions the user would like
2) Prompt a list of address book questions for them to fill in the data
3) ask which position to view
4) show...