This is probably a really weird question, but I've been working on a game in C++ for the past month or so, and I'm putting in a tree that runs away when the player talks/pokes it. So I came up with the name "Phil Collins" (First name that came to mind). Now I'm just wondering, is this a good name for a tree? :confused: Oh, I should probably point out that once this tree gets away, a message pops up which states that "[Tree's name] is watching you." *I can haz a cookie?*
RedZombie125
Posts
-
Naming trees... -
How to avoid Buffer Overrun?!I don't actually know what you're trying to do with this, but a pretty common mistake is miscounting the number of elements you're trying to allocate, so while you might think you've allocated accurately, you could be one off, which causes lots of problems. :( For example: "Phil Collins" Has a total of 13 elements, even though there's actually 12 characters in "Phil Collins". A common mistake is to forget the '\0' character at the end of every C-style string, so the whole thing is thrown off. (BTW, I used "Phil Collins" because I named a tree after him in a video game I'm working on... Does Phil Collins work as a good name for a tree..?:confused:) I hope that helps; bits of source code would probably help though. *I can haz a cookie?*
-
What is your best code comment this year?Mine's /* This is the main file; it does almost nothing except start up the application and keep the main message loop going. It's pretty important despite that last sentence. That's why it's labeled "main" and not something like "coconut" or "unimportant, delete on sight" */ :-O <---- What is this thing? :confused:
-
Snow and physicsIt's possible to use microwaves to melt snow, but you wouldn't be able to just turn the microwave oven inside out, that could take hours, if it did anything at all. :( As for the snowball, you would need A LOT of power to melt it that fast, and it would have to be focused all on the same point... Fun idea though :) Oh, another thing too, if you were planning on building something like this, just know that microwave ovens have gigantic capacitors in them (to create the radiation), which is not good if you happen to be taking one apart. :( That raccoon started it.