|
|
cin.ignore();
before getline
the out put wait for the enter and after entering appear....On the other hand, if i put \n
in the end of cout<<"miracle";
half of the things come out....why?cin.ingnore()
what are doing over there?!.... cout<<s<<endl;
in line 24 instead of cout<<s;