Very good, Thanks.
Type: Posts; User: kovacsbv
Very good, Thanks.
I am reading some code and can't identify what part of C++ this idiom is (that :fgl(NULL) that's in red below by the image::image definition).
If somebody can give me the magic phrase that I can...
Thanks, Elyisa.
Putting 'static' in front of the function in the class definition was what I was looking for.
One thing to note for anybody having the same question: if you declare the member...
Ah, yes. You need the object pointer now, don't you.
So, I wrote a small wrapper outside of Maze:
Uint32 Maze_TimerCallback(Uint32 interval, void *maze) {
return ((class Maze...
Hi,
I know C pretty well, but now am learning C++.
I am writing a maze program that wants to have a Windows (SDL) timer call back to a
member function in the Maze class.
The compiler is...
Thanks, Gentlemen, this helped a lot.
I have a new question about callbacks into a class, but I'll start a new thread for that.
kovacsbv
If you could humor me a little farther and give advice, I'd appreciate it.
Now for actually using C++ features.
I assume the maze setup macro would normally be put in the constructor instead of...
Doh!
Thanks for that second (and third) pair of eyes.
I had my mind so wrapped around this new foray into OOP (I'm going from C to C++ now) that I overlooked the obvious.
I included stack in...
Hi, all:
I'm writing a maze program and need a stack of integer vectors (just x and y) in the Maze class.
The problem is that the compiler isn't liking the std::stack. (See the red part in...