Well said. And I appologize for replying so quickly, *ehem*Thantos*ehem*.
Type: Posts; User: techrolla
Well said. And I appologize for replying so quickly, *ehem*Thantos*ehem*.
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.
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);
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...
When you use the array like this:
output[40] = collect();
output[40] = encrypt(output);
it should be
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...
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...
Heres the definition of the error I found online:
The problem is, I have the proper header included...
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...
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...
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...
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_...
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.
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...
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.
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:
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...
Quick: with javadoc style comments, document the header or the implementation?
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...
Thank you!
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...
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!
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...
Thank you!
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...