• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
how to confirm a variable's value is reset?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: how to confirm a variable's value is reset?
      • From: David Rowland <email@hidden>
  • Prev by Date: Novice Questions
  • Next by Date: Re: Autoconf, universal binaries, and dependencies
  • Previous by thread: Re: Novice Questions
  • Next by thread: Re: how to confirm a variable's value is reset?
  • Index(es):
    • Date
    • Thread