Search:

Type: Posts; User: p3rry

Search: Search took 0.00 seconds.

  1. Thread: Why?!?

    by p3rry
    Replies
    3
    Views
    3,057

    Thank You

    Ok, I got it.
    I thaught #define worked in a different way...so I also learned something new
    Thank you very much
  2. Thread: Why?!?

    by p3rry
    Replies
    3
    Views
    3,057

    Why?!?

    Hi everybody!
    I was testing a little program to see if I was using correctly some preprocessor directives and I got something unexpected.
    Here's the code

    #include <stdio.h>
    #include <stdlib.h>...
  3. Replies
    25
    Views
    11,923

    Ok... but there's any problem in using global...

    Ok... but there's any problem in using global arrays?
    (Sorry but my basic knowledge is very poor)
  4. Replies
    25
    Views
    11,923

    Why? I heard that dynamic allocation slows down...

    Why? I heard that dynamic allocation slows down the program and I need much statistic, so I'd prefer a faster simulation.
  5. Replies
    25
    Views
    11,923

    Hey yesterday the message board didn't work...but...

    Hey yesterday the message board didn't work...but thank to your advices I got the solution of my problem.
    The fact is that since I started to program in c nobody told me that I could declare global...
  6. Replies
    25
    Views
    11,923

    When I run the simulation with "smaller" arrays...

    When I run the simulation with "smaller" arrays it works, and I get the results that I expect from it. The segfaults comes out when I raise the dimensions of the variables. That's why I don't think...
  7. Replies
    25
    Views
    11,923

    Static Memory allocation

    Hello everybody.
    I'm working on this physical simulation with c language.
    I need to allocate very large arrays, so I exploit much memory on my pc... I'm not so used in these kind of topics so I...
  8. I used fflush(). Thank you very much for your...

    I used fflush(). Thank you very much for your advices... bye!
  9. thank you

    I'll try with fflush and then I let you know...
    Anyway thank you very much
  10. Controlling variable values by printing on file

    Hello to everybody.
    I have this simulation that implements some physical system. I get my results on a file using function fprintf. It-s a long Montecarlo simulation that gets one result in about...
Results 1 to 10 of 10