Search:

Type: Posts; User: td4nos

Search: Search took 0.00 seconds.

  1. Replies
    8
    Views
    1,095

    This appears to work, I will give it a go,...

    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...
  2. Replies
    8
    Views
    1,095

    Memory too much?

    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),...
  3. Thread: Memory Leaks!

    by td4nos
    Replies
    5
    Views
    1,362

    That makes sense. So, just to confirm: If in...

    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...
  4. Thread: Memory Leaks!

    by td4nos
    Replies
    5
    Views
    1,362

    Hmmm, OK. I am not initializing all the arrays...

    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...
  5. Thread: Memory Leaks!

    by td4nos
    Replies
    5
    Views
    1,362

    Memory Leaks!

    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...
  6. Replies
    8
    Views
    11,997

    gcc compiler for windows?

    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...
  7. Replies
    6
    Views
    2,516

    Also, I am trying to make a function that...

    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...
  8. Replies
    6
    Views
    2,516

    Hey thanks. I have started to build my...

    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
  9. Replies
    6
    Views
    2,516

    Creating File Handling Functions

    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...
  10. Replies
    3
    Views
    1,250

    OK, so I just changed everything to floats (for...

    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!
  11. Replies
    3
    Views
    1,250

    data type problem

    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>...
Results 1 to 11 of 11