Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
John Conway's Life with growth, aging
#2
popu% needs to be popu&

or maybe even popu&&

remember that in qb64 integer values can wrap around.  not like basica which could report overflow.

in case of zero or negative, if the value must be positive, you should be checking for its value and restrict it.  sadly this means popu variable should be at least a LONG instead of INTEGER.  because making it _UNSIGNED INTEGER would cause it to wrap back up to 65535.  when one expects it to become negative below zero.
Reply


Messages In This Thread
RE: John Conway's Life with growth, aging - by hsiangch_ong - 06-07-2025, 02:46 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Information Life james2464 23 4,733 08-16-2022, 02:19 AM
Last Post: james2464

Forum Jump:


Users browsing this thread: 1 Guest(s)