>Notice how the prompt specified that the upper limit is exclusive.
Oh! I see so those were on purpose. lol, and silly me, I though it was a type-o..
>only useful if you're running the program interactively
>and the window closes when the program terminates.
>it can get kind of messy.
Exactly, the only reason, I use it is to halt the comand promt after the execution of the code and nothing much. I know what you mean about getting messy. >_< It's just bums out, when you start seaching the whole program for error, only to notic after a long time it's that minute thing which becomes too big of a deal. And C/C++ being case-sensitive we need to really be careful.
>C++ was standardized in 1998
Waa... NOW that's NEW's to me, I read somewhere that it was changed in 2003, but still in my class books they are still usuing
#include<iostream.h>. It's so annoying, when you try to compile it and it goes around showing weird errors, and like everyone there gpes around about bitching that the compiler is corrupted. They are ONLY using
int main() because GPP doesn't support the void return value. But the actual problem is that, as you stated earlier that, retuning nothing ain't an option.
A question, was namespace std also there in the 1998 Standardization? Ooops, I should do that my self. ><..
>Type a letter instead of a numeric digit and watch it run until the heat death of the universe.
Haahaa, yeah totally, >_< it's so effin' annoying, it won't just halt or show error, just continue to print like rabid rats. (BTW, Eww rats) Sorry I didn't got that part, cause as I stated before I haven't completed my C++ so yeah.. :blush: ^///^ heheh.. Well, that's a nice info I got.
I get it now..
std::cin.ignore ( std::numeric_limits<std::streamsize>::max(), '\n' );
This will actually exclude everything else after the assigned default numeric limit set by the compiler. But still I don't understand the actual function, that how this code is executing. uh! I soo need to study more, off I'm to the thread to clean. xDD