how to confirm a variable's value is reset?
how to confirm a variable's value is reset?
- Subject: how to confirm a variable's value is reset?
- From: Kirk Wythers <email@hidden>
- Date: Tue, 12 Jun 2007 12:19:52 -0500
Sorry for the simplistic question, but I am new to xcode and I'm trying to figure out how to step through my code to check that a variable gets reset to zero each year (I suspect that it is not).
For example in this code snipit the variable woodDecRespYr gets reset to zero at the beginning of each year evidenced by the fact that each year prints out a new and reasonable total, while the soilDecRespYr appears to get incremented, essentially doubling each year. It is odd since both variables should get reset to zero in the function that I have copied below.
/*---------------------------------------------------------------------- Initialize annual and total varaibles -----------------------------------------------------------------------*/ bool TVeg::newYearCN(TDay *day) { soilDecRespYr = 0.0; woodDecRespYr = 0.0; }
Thanks
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden