Hey guys,
I have some code in a program which does the following:
Code:char a[20]; cout<<"enter a word"<<endl; cin.getline(a, 20);
But for some reason the getline code gets ignored. I was just wondering if anyone knows whys its getting ignored?