Hey,
Thanks for the reply, but I'm not understanding how your array gets updated, because your function doesn't return anything, nor does it get stored into a variable of some sort. How does it...
Type: Posts; User: Estauns
Hey,
Thanks for the reply, but I'm not understanding how your array gets updated, because your function doesn't return anything, nor does it get stored into a variable of some sort. How does it...
Hey all,
I have a 2D array of a Tic Tac Toe gameboard, and I'm trying to figure out how to pass the gameboard (aBoard[3][3]) to a function(void CreateBoard( xxx ))... and I have no idea how to do...
Thanks, thats EXACTLY what I was looking for =)
Hey all,
I've learned all the basics of programming and I'm looking for some of those school homework assignments, where you take certain skills and hone them by repeatidly using them.
One that...
Hey all,
Before you go flipping on me, I _HAVE_ read the FAQ and I _HAVE_ got my random numbers to work. I just don't understand what part of the random command.
Heres the syntax:
rand( ) %...
Let me give a shot on pointers here,
Basically pointers are just memory saving conventions, instead of having one billion variables to hold a players name, you have one variable and a pointer to...
You could also trying using istream.h and ostream.h instead of both header files in one...
#include <istream.h>
#include <ostream.h>
One method would be to use default paramaters in your function, for example:
int mult(int x, int y, int z = 1)
And now Z is a default paramater, which means by default its 1, but you can also...
My bad, should of clarified that.
I guess that's life then huh? =P
Oh well, adapt these new changes and all will be well.
Look at your main() function, you have 4 curly braces, but I only see a need for 2.
Try changing:
int main()
{
int i;
{
cout << "Enter a number:" << endl;
delete [] *iPointer;
*iPointer = NULL;
IT wouldn't be that big of a pain in the ass to do 50 case statements, simply because you know your input is limited from -50 to 50.
Hey,
If you're looking for DirectX help, check out nexe.gamedev.net and if you're looking for OpenGL help, check out nehe.gamedev.net
They are both hosted at www.gamedev.net which is a...
Hey all,
Can anyone give me a hand with theory behind pointers? I just don't understand them for the life of me. What is the purpose of them, what use do they have?
The only thing I could come...
Hey all, can you guys give me some input on how effecient this code is? It seems rather effecient to me, the main game loop only calls three functions, and those functions are re-used for each player...