Search:

Type: Posts; User: xmltorrent

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,915

    haha I like dirty code! That and I'm not too...

    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.
  2. Replies
    5
    Views
    1,915

    Now that works. So access for members created...

    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...
  3. Replies
    5
    Views
    1,915

    Accessing Member Methods inside a Vector [RESOLVED]

    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...
  4. Replies
    3
    Views
    1,466

    haha That nested class problem was goofy. I...

    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...
  5. Replies
    3
    Views
    1,466

    Two Questions In One [RESOLVED]

    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...
  6. Replies
    4
    Views
    1,048

    Ah good call there. lol Thanks for your help.

    Ah good call there. lol Thanks for your help.
  7. Replies
    4
    Views
    1,048

    hmm See that's what I thought too. In my...

    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:
  8. Replies
    4
    Views
    1,048

    [RESOLVED] I'm not really sure what to call this one

    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...
  9. Replies
    11
    Views
    4,303

    I like this tutorial a lot but the problem is, as...

    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...
  10. Replies
    11
    Views
    4,303

    Graphics Libraries for C++

    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...
  11. In order to understand my new question, know that...

    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...
  12. Breakout Collision Detection Algorithm Help

    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...
  13. Replies
    2
    Views
    1,825

    Allegro Programming Question

    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
    */
    ...
  14. Replies
    1
    Views
    969

    Namespace question

    I was just wondering, is it possible to put the name of a class into a namespace?
  15. Replies
    11
    Views
    6,267

    hmmm That was slightly confusing. Okay lets...

    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:
  16. Replies
    11
    Views
    6,267

    Okay so by using the copy constructor, it...

    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...
  17. Replies
    11
    Views
    6,267

    Ah I see. That clears that issue up. Thanks for...

    Ah I see. That clears that issue up. Thanks for the help.
  18. Replies
    11
    Views
    6,267

    So in other words, it's more or less a way to...

    So in other words, it's more or less a way to modify the behavior of an operator to better suit your needs?
  19. Replies
    11
    Views
    6,267

    Purpose of Operator Overloading

    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...
  20. Replies
    3
    Views
    1,478

    Okay I took your advice and changed to DevC++. ^_^

    Okay I took your advice and changed to DevC++. ^_^
  21. Replies
    3
    Views
    1,478

    Conversion error on winclassex

    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...
  22. Replies
    2
    Views
    1,149

    Character type conversion error

    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...
  23. Replies
    2
    Views
    3,177

    Damn binary to decimal algorithm

    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.
  24. Replies
    5
    Views
    1,498

    I get now. Thanks a lot you guys. I went and did...

    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!
  25. Replies
    5
    Views
    1,498

    Thanks. That fixed it but what is it doing and...

    Thanks. That fixed it but what is it doing and why did I have to do that?
Results 1 to 25 of 37
Page 1 of 2 1 2