|
From: Ray K. <he...@er...> - 2004-02-25 11:44:30
|
Whoops. I realized I misread your message shortly after I sent my reply.
If the window is closing even with cin.get() in there, it means that=20
there's
probably still something in the stdin file stream, and cin.get() is=20
pulling
that out and then returning. There are a couple of methods that might wor=
k.
1) use system("pause"); (Remember, this isn't portable.)
2) cin.ignore(100,EOF); cin.get();
That will clear up to 100 characters from stdin, and will stop if it=20
reaches
the end of file. Then it will call cin.get(), and this time there=20
shouldn't be
anything left in the stream for it to pull out, so it'll wait for user=20
input.
My advice about not using MIME formatting is still valid.
|