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.
3 ответов
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.