haha I like dirty code! That and I'm not too familiar with the Boost library yet. :/
But thanks for all your help guys. I'm on the right track now.
Type: Posts; User: xmltorrent
haha I like dirty code! That and I'm not too familiar with the Boost library yet. :/
But thanks for all your help guys. I'm on the right track now.
Now that works.
So access for members created off the stack looks like this:
(*vectorIteratorNameHere).classMethodNameHere()
What about classes that are instantiated off the heap? You would...
Hi guys and gals. It's been a while since I've posted here but I'm back.
I'm having some trouble with vectors, vector iterators, and vector element access. I know I've done this before but my...
haha That nested class problem was goofy. I didn't realize I was doing that. I was just typing away and didn't notice until you looked at it. Sometimes it's truly better to have a fresh set of eyes...
Hello all. It's been a while since I last posted here but I'm back in the swing of things and I have two doozies for any of you if you have the time.
First off I have a question about the vector...
Ah good call there. lol Thanks for your help.
hmm See that's what I thought too.
In my main.c file, I created a reference to a PLANE structure like so:
PLANE *plane;
(sorry for the lack of better naming)
Then I tried doing this:
Okay I have a data structure called SPRITE. Then I have another data structure called PLANE. The SPRITE structure holds all the data that doesn't pertain to the actual bitmaps that make up the sprite...
I like this tutorial a lot but the problem is, as with most anything that is public domain in the programming realm, it's Windows based; it wants me to do stuff with Visual C++. It has the cource...
Before I ask my question, I'm programming under Red Hat 9.
I would like to have some suggestions as to what, if any, graphics libraries I should use for graphics programming in C++. I know of...
In order to understand my new question, know that the ball starts off directly in the center of the bat and about 10 pixels above it.
My question here is that I want to ball to start moving in a...
I'm having trouble with my breakout clone.
So far, for test purposes, I'm having the ball bounce off the boundaries of the window the game is played in (800 x 600). My current problem is that I...
Okay I have a two files here. A header file called types.hpp and main.cpp. Here is the contents of types.hpp:
/*
types.hpp
header file that defines all the types used in the game
*/
...
I was just wondering, is it possible to put the name of a class into a namespace?
hmmm That was slightly confusing.
Okay lets say I have a class called enemy and it looks something like this:
class enemy{
private:
int a, b;
public:
Okay so by using the copy constructor, it basically saves you from having to write code for classes that are identical?
Taking from your example, I'm guessing that widget b would have the same...
Ah I see. That clears that issue up. Thanks for the help.
So in other words, it's more or less a way to modify the behavior of an operator to better suit your needs?
I was reading an article about this and I'm totally lost as to what the purpose of using operator overlaoding is. Could someone give me an explaination as to what it's main purpose is?
While I'm...
Okay I took your advice and changed to DevC++. ^_^
winclass.hbrBackground = GetStockObject(BLACK_BRUSH);
I'm using MSVC++6 to compile my windows program. This line of code is pointed out by the compiler as having a conversion error from void* to...
I'm laying out a framework for a game project that I'm interested in making. I have a generic class to handle each different type of object that will be in the game. Inside each class is a member...
Can someone give me an algorithm to convert binary to decimal format? I've been trying for days to get one to work and I can't find one to work. Thanks are greatly given to any solutions.
I get now. Thanks a lot you guys. I went and did some studying on my own and read your posts and it helped out a lot. Thanks a ton!
Thanks. That fixed it but what is it doing and why did I have to do that?