WHEN WE have to take input string, then
int n;
cin>>n;
cin.get();
why are we using cin.get() after cin>>n ??
WHEN WE have to take input string, then
int n;
cin>>n;
cin.get();
why are we using cin.get() after cin>>n ??
Hey
cin.get() extracts the white space character(which is a space) after n
after that you can read strings.