cool growth simulation

This is a discussion on cool growth simulation within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I just recently spent about an our or two whipping together a growth simulation program that simulates the growth of ...

  1. #1
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,904

    cool growth simulation

    I just recently spent about an our or two whipping together a growth simulation program that simulates the growth of three organisms in an environment

    check it out here:

    http://thejefffiles.com/downloadfile...les/Growth.zip

    it's pretty fun to try and keep one of the groups of things high population, while maintaining the rest of the population

  2. #2
    BMJ
    BMJ is offline
    Banal internet user BMJ's Avatar
    Join Date
    Aug 2002
    Location
    Chicagoland
    Posts
    1,380
    That's really neat.

  3. #3
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    I found it to be just a little odd... but if the stats are true, it is interesting.

  4. #4
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    its neat, but there should be a way to exit the program :-\
    I came up with a cool phrase to put down here, but i forgot it...

  5. #5
    5|-|1+|-|34|) ober's Avatar
    Join Date
    Aug 2001
    Posts
    4,429
    umm... Alt-F4?

  6. #6
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    having the OS forcefully closing your window and the program having the capability of cleanly exiting back to the OS by itself are two different things, especially when the program is run in full screen...

    though, i will give you the benefit of the doubt and assume that you have never written a clean and user-friendly program before.
    I came up with a cool phrase to put down here, but i forgot it...

  7. #7
    C++ Developer XSquared's Avatar
    Join Date
    Jun 2002
    Location
    Ontario, Canada
    Posts
    2,718
    ALT-F4 is not forcefully closing. With most programs, it's the same as hitting the 'X' or going to File->Exit.
    Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah

    You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie

  8. #8
    ...
    ... is offline
    Registered User
    Join Date
    Feb 2002
    Posts
    465
    im not going to argue the point, except to say that programs should have an obvious way to exit when they are run in full screen.
    I came up with a cool phrase to put down here, but i forgot it...

  9. #9
    Software Developer jverkoey's Avatar
    Join Date
    Feb 2003
    Location
    University of Waterloo
    Posts
    1,904
    alt-f4 is the same as hitting the x, as it quits from the message loop and handles all of the cleanup code at the end. I'm sorry if it's really that big of a deal that i forgot to make it so you could quit with the escape key, lol. It's just one line of code....i'll put it in there right now

    -edit-
    sorry, two lines of code
    Code:
       if(wParam==VK_ESCAPE)
    	done=true;
    happy day

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Cheap way to cool down an external harddrive
    By cyberfish in forum Tech Board
    Replies: 13
    Last Post: 06-19-2009, 07:10 PM
  2. fork, execv, spawn, or something else?
    By DavidP in forum C++ Programming
    Replies: 8
    Last Post: 01-26-2009, 04:25 PM
  3. Role of c++ in simulation software
    By CChakra in forum C++ Programming
    Replies: 9
    Last Post: 11-18-2008, 02:36 AM
  4. Help with time simulation assignment
    By rakan in forum C++ Programming
    Replies: 3
    Last Post: 10-31-2006, 11:39 AM
  5. Trying to be cool
    By Theologian in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 08-19-2001, 07:17 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21