thanks a lot that was the problem!
Type: Posts; User: Mr_Jack
thanks a lot that was the problem!
Well, perhaps I was I bit harsh, but instead of trying to make me change my style, which I'm sure I asked no one to do, I would expect someone to help with the problem I asked for help for. This plus...
THE STL REINVENTED THE WHEEL YOU FOOL!!!! why else do you think the bitwise operators are built into the language?? PLEASE, all's I asked for is help!!! If you can't help, don't pick at my code! That...
I am making minesweeper for the standard console... So every space is represented by a unsigned char. The first four bits tell how many mines are touching the space. The 5th bit is set if it has been...
No, this is excactly what I need to do. My program uses all ASCII characters 32-100 and something. My program has the images of each characters stored in special places in the GBAs memory and I need...
I'm making this text demo for the GBA. Anways I'm making this function to convert ASCII character to my characters. For some reason when I try to generate a string using this function all of my image...
Whenever I try to use the & operator, I get the illegal operand error. What the hell???? This line generates an error:
cout << (int)(temp & 8) << endl;
Thanks for you help
WHY does this code not compile???:
field_origin = new u8[field_size*6][field_size*10];
Thanks for your help
I'm coding a simple physics demo for the GBA. This is a 2D demo. One thing to know is that the GBA screen is 240x160 pixels. There is a struct called object that stores data for images that can be...
here's my checkin function so far:
void CheckWin()
{
//Try to find a way to avoid doing a lot of this checking as it seems slow
u8 currentplayer;
if (whosturn == 0)
I am programming a game that is a rip of connect four for the GBA. The GBA isn't so fast. I'm not even done with my win-checking function and there is like a 1 sec slowdown when my program checks for...
Wow I never knew any of that stuff. Thanks a lot guys
Let's make believe that we have a bool variable called giraffe. giraffe currently equals 0. Now let's say that we use the bitwise negation operator on giraffe like so:
giraffe = ~giraffe;
giraffe...
I have this linked list class that stores int variables. Each int variable is placed in it's own node. I want to put the nodes in order, greatest to least. I thought of an idea where you have a loop...
Thanks man, I totally forgot about that!
For some reason every time I try to make an operator function a friend to a class, I always get the error "illegal operator declaration". I have no clue why. I would be more thankful than you would...
thank you all for your help!!!!!
Does anybody know of a good tutorial that tells you everything there is to know about dealing with binary trees? All of the ones that I have seen absolutely suck. If you could tell me where to get a...
My book says that my function to convert char * to string will be called when I assign a char * value to a string object, when I pass a char * value to a function expecting a string argument when a...
In my string class I have a constructor for type conversions from char * to string (the name of my string class). My program doesn't implicitly convert char * to string when I say something like
...
Ok, thanks a lot for all of your help!
could you give me an example of a dynamic array please?
I do feel stuipid. Thank you very much for helping me, it would have taken me a long time to figure the out the error with not initializing head and current. I probably would have figured out the...
sorry, I clicked submit by mistake and my incomplete message was posted.
I'm am working on a string class. Each character of the string occupies one node. The function that my string class uses to convert from char * to string (the name of my string class) is giving me...