I am a newcomer to c++ , and i have a very strange problem.I know i should use ^z to terminate a while loop such as while( cin >> string ) under windows system, and if there is only one such while loop , it works well, but if i have two, the second one won't work, why?
The second loop won't begin. It exits immediately after the Another: was printed out, why? I am so confused. I would appreciate it very much if you help me out!
Thanks!
ps: I use Mingw under windowsXP.