Hi,
I don't remember if it happened previously, but nowadays
I'm having problem with using cin.getline function and
cin>> function simultaneously.
I have Visual Studio 6. If I use cin.getline function at
first and then I use the cin>> function then the next time
cin.getline function does not work.
Eg:-
cout<<"a::";
cin.getline(a, 20);
cout<<"Num::";
cin>>Num;
cout<<"b::";
cin.getline(b,20);
cout<<"c::";
cin.getline(c, 20);
Now in output it will input for 'a' then 'Num' but it will
leave input for 'b' and then it will input for 'c'.
Please do help me with this problem.
Thanks,
Vikram.