Newbie C++ programmer again...

Robert Ambrose rna@testpt.com
Fri, 18 Aug 2000 09:10:56 -0700 (MST)


It does solve his original post from a few days ago.  I didn't initialize
tester because I'm not looking at it until it was in a known state.  I
understand about initializing stack variables, I had a bug in a program a
a while back that drove me nuts for about 3 years until I finally worked
out it was because of a stack variable that wasn't initialized *sigh*.
That said, the real trick isn't just to initialize, but to make sure
variables are in 'known' states when you use them.

rna

On Fri, 18 Aug 2000, Rob Wehrli wrote:

> Not bad, however, it doesn't teach him how to use isalpha :)  Also, you 
> should initialize "tester" before using it.  That way, you can spew it out 
> to see if it was changed by anything that happened/didn't happen, too.  It 
> will prevent more than just seg faults overtime...like help cure random 
> debugging weirdness that "just seems to happen" to all of us more often 
> than we'd prefer.
> 
> Take Care.
> 
> Rob!
> 
> 
> 
> _______________________________________________
> Plug-devel mailing list  -  Plug-devel@lists.PLUG.phoenix.az.us
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-devel
>