A
Active8
Hi:
Hope this isn't an IDE or OS problem. I'm using VC++ v6 and using cin in
a console program. I use cin.getline() and sometimes just cin
Oh... Winders XP Pro Corp Ed. (ooohh... scary, no?) SP 1 on XP and sp4,
IIRC on VS enterprise. Really pushing the envelope here.
This program works fine if I run it from VC++, but even after doing a
release build, if I run the exe, it acts like I didn't enter a thing
when my prompt "enter number" or "enter anything" comes up and I enter a
valid number (or "anything")
It's strange. At first, the function clock() returned zero. Now that
works. I also had array corruption (array initialized in a constructor)
happening and the fix was to declare a dummy variable in the class
constructor. Ok enough horror. Here's a snippet - the problem snip du
jour (sp?), if you will:
Any idea why the cin object isn't doing it's job? Please? I did try
running it in 95 compatibility mode. It's a relatively fresh XP install,
too. And I'm carefull about what SW I install.
Thanks in advance
Mike
Hope this isn't an IDE or OS problem. I'm using VC++ v6 and using cin in
a console program. I use cin.getline() and sometimes just cin
Oh... Winders XP Pro Corp Ed. (ooohh... scary, no?) SP 1 on XP and sp4,
IIRC on VS enterprise. Really pushing the envelope here.
This program works fine if I run it from VC++, but even after doing a
release build, if I run the exe, it acts like I didn't enter a thing
when my prompt "enter number" or "enter anything" comes up and I enter a
valid number (or "anything")
It's strange. At first, the function clock() returned zero. Now that
works. I also had array corruption (array initialized in a constructor)
happening and the fix was to declare a dummy variable in the class
constructor. Ok enough horror. Here's a snippet - the problem snip du
jour (sp?), if you will:
Any idea why the cin object isn't doing it's job? Please? I did try
running it in 95 compatibility mode. It's a relatively fresh XP install,
too. And I'm carefull about what SW I install.
Thanks in advance
Mike