This appears to work, I will give it a go, thanks!
Oh, I realize that 576kb is a lot, but it really is a lot nicer to do this. I know, lots of people over-do it with their array declaration...
Type: Posts; User: td4nos
This appears to work, I will give it a go, thanks!
Oh, I realize that 576kb is a lot, but it really is a lot nicer to do this. I know, lots of people over-do it with their array declaration...
Hi everyone,
I am trying to compile a c program with the following float declaration:
int function(){
float M[256][256][9];
}
I compile just fine (gcc filename.c, no other arguments),...
That makes sense. So, just to confirm:
If in a function I initialize myarray[], it takes a chunk of memory. At the end of the function the memory that was holding myarray[] is "freed up" in...
Hmmm, OK. I am not initializing all the arrays to zero. However, when I do run the programs, the default values of all the arrays after they are initialized appear to be 0 (zero).
That might...
I have a program that calls a function and it has many loops and many arrays in it. This function is called several times.
Unfortunately, when I call the function again and again, my results from...
Hi all,
Currently, I have been compiling my school projects on our unix machines, ya know, connecting via x windows or putty as a terminal, and also using an FTP program to transfer files.
More...
Also, I am trying to make a function that modifies an array in the function that calls it. Since I cannot return arrays, I guess I need to do it this way.
In your example below, I understand how...
Hey thanks. I have started to build my "savefile" function.
In my code, I have this:
int inputarray[256][256][1];
//do operations on inputarray
Hi All,
I would like to simplify some of my code to handle the opening and writing of files. Currently, every time I open or write a file, I have the code right there in the program. I'd like to...
OK, so I just changed everything to floats (for simplicity). And used the %f notation for printing to the screen. It all seems to work!
Thanks for you help everyone!
Hi all, I am hoping someone can tell me what I am doing wrong. I want to divide two numbers and get a decimal from that, but I cannot figure out how to make this work.
#include <stdio.h>...