Search found 9 matches
- July 31st, 2012, 11:55 pm
- Forum: Everything
- Topic: Help with "return functions"
- Replies: 6
- Views: 2626
Re: Help with "return functions"
"Why do we need return functions?" This is a very, VERY important question. And I very much can sympathize with you, because I knew how to program in C for a long time, but had never spent time trying to learn C++, because I couldn't understand what Classes were useful for. So it really helps us, yo...
- July 31st, 2012, 7:03 pm
- Forum: Everything
- Topic: Got a little problem here! :D
- Replies: 6
- Views: 3053
Re: Got a little problem here! :D
I've looked at your code, and I think I see the problem. The variable activePlayer is not initialized. So the variable may initially have a value that is well outside the three enums, EMPTY, X, or O, which would make the function call to set the first square state to act abnormally. (After the first...
- July 31st, 2012, 5:02 am
- Forum: Everything
- Topic: best book for data structures??
- Replies: 4
- Views: 2407
Re: best book for data structures??
That's a really good question, and the answer may just be that there aren't any good books out there. My reasoning is this: most programmers who really know their stuff aren't writing books, because they are too busy writing code. Also, books in this category become dated very fast. And the really s...
- July 31st, 2012, 3:18 am
- Forum: Everything
- Topic: game-framework conflict
- Replies: 2
- Views: 1699
Re: game-framework conflict
There is some discussion on this topic at --> http://social.msdn.microsoft.com/Forums/en-US/vsdebug/thread/baf272c8-fb69-45d6-aa0e-9c22a6053ee6 My guess is that both programs are trying to use a resource by the same name or handle, and there is no exception handling to access the resource by a diffe...
- July 31st, 2012, 2:34 am
- Forum: Everything
- Topic: Got a little problem here! :D
- Replies: 6
- Views: 3053
Re: Got a little problem here! :D
Oh, I forgot! Along with uninitialized pointers, you should also watch out for writing to an array element that is outside the declared size. Like for example, you might be writing to element 98 of an array that was declared to have only 50 elements. Both C and C++ allow you to do crazy stuff like t...
- July 31st, 2012, 2:22 am
- Forum: Everything
- Topic: Got a little problem here! :D
- Replies: 6
- Views: 3053
Re: Got a little problem here! :D
Yes, the dreaded wild pointer. Worse than hunting the wild boar. Your value for that box is being overwritten by an uninitialized pointer that can be anywhere in your code. I would say that you can track it down with the debugger, but unifitialized pointers can change the behavior when you add or su...
- July 31st, 2012, 1:15 am
- Forum: Everything
- Topic: Project: BMOP (Baddest man on the planet)
- Replies: 6
- Views: 4418
Re: Project: BMOP (Baddest man on the planet)
Good luck with your game! You might find it helpful if you do some research on such games to nail down exactly what you want to do. Most programmers (including myself, sometimes) start programming before they have clear objectives, and then they end up shelving a lot of perfectly good code because t...
- July 31st, 2012, 12:44 am
- Forum: Everything
- Topic: Help for a newbie?
- Replies: 5
- Views: 2617
Re: Help for a newbie?
According to my research on the subject, there is a hotfix patch that you can download from Microsoft at--> http://social.msdn.microsoft.com/Forums/en/msbuild/thread/7b29020e-2aab-4648-840f-b18874c75397 Also, there is a note at --> http://connect.microsoft.com/VisualStudio/feedback/details/653223/er...
- July 29th, 2012, 3:43 pm
- Forum: Everything
- Topic: Help for a newbie?
- Replies: 5
- Views: 2617
Re: Help for a newbie?
x and y should be 400, and not negative 400.
good luck
- Backspace
good luck
- Backspace