0

cin.ignore

for example my code is :- #include <iostream> using namespace std; int main{ //just assume I already do the declaration cout<<" Customer's Name : "; cin.getline(customer,20); cout<<" Receiver's Name : "; cin.getline(receiver,20); cout<<" Receiver's Address : "; cin.getline(address,50); } Where to put the cin.ignore ? I can't figure it out. Everytime I need to use cin.ignore, I really don't know where to put it.

2nd Jan 2019, 8:11 PM
Syed Bob
3 Respuestas
0
I'm sorry, but I'm pretty new in coding. Can you explain it in the easier way ? but thank you for your reply sir.
3rd Jan 2019, 4:02 AM
Syed Bob