Search:

Type: Posts; User: techrolla

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    21
    Views
    3,927

    Well said. And I appologize for replying so...

    Well said. And I appologize for replying so quickly, *ehem*Thantos*ehem*.
  2. Replies
    21
    Views
    3,927

    I was simply helping him with what he already...

    I was simply helping him with what he already had. His didn't offer for input of more than 40 characters. Just trying to help the guy, relax man.
  3. Replies
    21
    Views
    3,927

    Here it is with c strings, this works for me, and...

    Here it is with c strings, this works for me, and it gets rid of returning local variables, etc.



    #include <iostream>
    #include <cstdlib>

    void collect(char *str);
    char *encrypt(char *word);
  4. Replies
    21
    Views
    3,927

    sorry, you have to change the prototypes of the...

    sorry, you have to change the prototypes of the functions and change
    char output[40]; to
    char *output;. There are still errors in the implementation, you don't get the right results, but that is...
  5. Replies
    21
    Views
    3,927

    When you use the array like this: ...

    When you use the array like this:


    output[40] = collect();
    output[40] = encrypt(output);


    it should be
  6. Replies
    16
    Views
    4,037

    Could this be an order of inclusion problem? ...

    Could this be an order of inclusion problem?

    It would be greatly appreciated if someone could take a hard look at the code here: http://max.muffinpeddler.com/arch/angelchronicles-200511.tar.bz2...
  7. Replies
    16
    Views
    4,037

    Hmm...This is really wierd. I guess I will have...

    Hmm...This is really wierd. I guess I will have to look harder at all the files to see if I am missing something somewhere. It fails in both g++ and vc++ 6, so it's not a compiler problem. VC++ 6...
  8. Replies
    16
    Views
    4,037

    Heres the definition of the error I found online:...

    Heres the definition of the error I found online:


    The problem is, I have the proper header included...
  9. Replies
    16
    Views
    4,037

    Thanks I will look into it. I want to believe...

    Thanks I will look into it. I want to believe that the error is from Camera, a problem with my singleton implementation, but you may be right. If you don't mind, I gave a link above to the snapshot...
  10. Replies
    16
    Views
    4,037

    The GameManager() {} just defines the default...

    The GameManager() {} just defines the default constructor, but it doesn't do anything. I may add to it later, but for now no.

    Here is the vc++ 6 compiler output. Please disregard the opengl...
  11. Replies
    16
    Views
    4,037

    Here is a package of all the code I have right...

    Here is a package of all the code I have right now, maybe I am missing something else where...There are makefiles and everything included for linux, the win32 stuff is old in the package. Here is...
  12. Replies
    16
    Views
    4,037

    No change, I am afraid to say. Could it...

    No change, I am afraid to say.

    Could it possibly be that I have the first instance of GameManager created in a non-class as a global?

    Here is my game.h file:



    #ifndef AC_GAME_H_...
  13. Replies
    16
    Views
    4,037

    Well that would be the easy way out, but then I...

    Well that would be the easy way out, but then I don't get the functionality that I need. But is there a reason that this is happening? Am I approaching the singleton in the wrong way? Thanks.
  14. Replies
    16
    Views
    4,037

    Singleton problems

    I posted a question similar to this one before, but it seemed to die out.

    Here is my problem: I have two classes using a singleton design pattern, and everything works fine. For our purposes...
  15. Well whenever I take out all the GameManager...

    Well whenever I take out all the GameManager includes and references in Keys, everything compiles fine. Maybe this is an automake conflict? I don't really know. Thanks.
  16. Hey thanks for replying, here are the snippets of...

    Hey thanks for replying, here are the snippets of the problem files:

    Here is the Keys class


    #ifndef AC_KEYS_H_
    #define AC_KEYS_H_

    /** A key-binding implementation.
    * Problems:
  17. Possible circular definition with singleton objects

    I am coding a game, and I have a class that I have created into a singleton object. That singleton object declares some variables, and everything works just fine. The problem comes when one of...
  18. Replies
    16
    Views
    2,465

    Commenting Style Preference

    Quick: with javadoc style comments, document the header or the implementation?
  19. Replies
    1
    Views
    2,111

    mouse click coords and moving a rect

    I was wondering what a good way to get the difference between a rectangle's x, y position and a mouse click coord. I want to have something where you can click on a rectangle and move it, but the...
  20. Replies
    3
    Views
    932

    Thank you!

    Thank you!
  21. Replies
    3
    Views
    932

    Reading text as int

    How could I read a text file and then find the numbers in it and convert them to int? Or is there a way to read them in as ints with out conversion? Thanks...
  22. Replies
    4
    Views
    1,431

    thank you! Just out of curiosity, is there...

    thank you! Just out of curiosity, is there anyway other way to do something like what I had in my previous post? I am definately going to use this, its almost exactly what I was looking for!
  23. Replies
    4
    Views
    1,431

    general function calling

    I was wondering if there was a way, using macros, to define functions in a very general way, based on a common key that will call a function based on a specific key. Like this:
    There are a bunch of...
  24. Replies
    5
    Views
    929

    Thank you!

    Thank you!
  25. Replies
    5
    Views
    929

    function as a type or object

    I was wondering, how is this done: when you pass the name of a function to a macro and it will call that function when it needs to, like this line of code:
    GTK_SIGNAL_FUCN(eventFunction);
    How does...
Results 1 to 25 of 35
Page 1 of 2 1 2