hey,
thanks.. that the way I origionally had it. I was hoping new was a little more advanced.
thanks for the help!!
cheers,
ActionMan
Type: Posts; User: ActionMan
hey,
thanks.. that the way I origionally had it. I was hoping new was a little more advanced.
thanks for the help!!
cheers,
ActionMan
sorry forgot to say that twoDArray is declared as follows..
char ** twoDarray;
hey,
Just having trouble with creating a 2d array in the heap memory.
my code goes something like this:
twoDarray = new char[iSize][iSize];
where iSize is passed into the method.
hey all,
im trying to time a system call.
I want to use/ understand the times() function. but it doesnt seem to work.
both calls to the times() function return the same value. It must have...
hey thanks,
I didnt know about the srand function. :)
now that i know about that it works fine.
If I do it the way your suggest however it will use low ordered bits. I need to use high...
Hey all,
Im trying to produce random numbers in the range of 1 to 50,000 using the rand() function.
just a little curiouse as to how this function works.
Ive been fiddling with it and i...
hey
from what i can see..
firstly your not allocating space for the array of strings..
i.e.
char **thingies
this is a pointer to a pointer to a char (which could be an array)
thanks for all your help :-)
Hey all,
Im working on a project at the moment which will use a java gui but do the problem solving in c.
The way Im planning to do this is by calling the c functions from the java code..
but...
Hey,
well sequential searcher are slow.. but they are a simple concept.. heres some pseudo code:
while (not at end of list AND not found)
{
if (this node is what searching for)
found!!!...
Hey,
well sequential searcher are slow.. but they are a simple concept.. heres some pseudo code:
while (not at end of list AND not found)
{
if (this node is what searching for)
found!!!...
hey all,
i dont understand why you would even consider buying a compiler unless you were going to sell your programs...
its sorta self supporting.. more money you make.. better you'll be at...
hey,
thanks for your advice/help..
I worked out that I hadn't initialised the childOne and childTwo
pointers to NULL.. when I did that everything came together.
thanks again,
hey all,
having trouble with a part of my program that puts a node into a binary tree. i havent put the whole code here b/c that would be to big.
im using gcc on unix.. After using gdb it tells...
hey,
I figured it'd be something like that..
you wouldnt be able to tell me more about compiling to assembly would ya.. it looks interesing.
thanks again,
Hey all
been thinking about this a bit reciently.
which of the following would run faster??
------------------------------------------------
printf("Hello World");...
Hey all
been thinking about this a bit reciently.
which of the following would run faster??
------------------------------------------------
printf("Hello World");...
thanks..
after a quick glimpse that OpenAL looks good!
I'll give it a bit more of a read later.
I've made that mistake of planning a large game 2 times b4.. both attempts failed.
this time...
hey all,
Ive been thinking about game programming for a year now.. and ive finally decided to get off my butt and do something.
I know c and opengl.
I was thinking about creating a model of a...
Hey,
Just thinking about it.. dumb creatures.. they would move to a randomly generated position.
as the creatures get smarter.. they would move to a randomly generated position within a certain...
Hey,
I don't know if its actually possible to take in an array of any size.
(unless you take it in as a command line argument).
There needs to be a maximun value for the size of the input...
eeewwww,
global variables...
firstly, it doesnt look like you open the file. You need to use something like:
------------------------------------------
reportPtr = fopen("filename", "w");...
Hey,
different compilers can have different sizes for ints types.. well actually.. ints are eaither the same size as a short (16-bits) or a long (32-bits),
anyway thats not the point. if you have...