i have declared the variable str and defined it as follows..
std::cout<<"\n Enter name: ";
whenever i enter something like ish kri
, i.e., any name with a space in it, it gives me an infinite loop. i tried declaring the variable as a string too, but that didn't help either. PLEASE HELP :)
Last edited on