Can you clear this up for me please Steve,(posted 7081 days ago)
I'm working my way through the C++ Training Guide under Windows 95, and have come across something which puzzles me. The Compiler seemed to install OK, g032-v2 looked fine, and sample code from the disc and code which I write myself compiles and runs, no problem. But when I run it under the debugger using trace... I can step through the program using z [enter] but the variable values which you mention in the book just don't appear on my screen.
Also, and maybe this is related, concerning Vect1 and your discussion with Susan about variable initialisation, and what would happen if the five weights entered happen to all be 0 (zero). You say that I should expect a message similar to :
"You have tried to use element 51082 of a vector which has only five elements. "
Well, I tried that several times and the output is always the same. I don't get any message, just:
The Highest weight was: 0 The Second Highest weight was: 0 The Third Highest weight was: 0
Am I going crazy or just missing something obvious that's staring me in the face?
[ Previous | Next ]