Ok, I got it.
I thaught #define worked in a different way...so I also learned something new
Thank you very much
Type: Posts; User: p3rry
Ok, I got it.
I thaught #define worked in a different way...so I also learned something new
Thank you very much
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>...
Ok... but there's any problem in using global arrays?
(Sorry but my basic knowledge is very poor)
Why? I heard that dynamic allocation slows down the program and I need much statistic, so I'd prefer a faster simulation.
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...
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...
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...
I used fflush(). Thank you very much for your advices... bye!
I'll try with fflush and then I let you know...
Anyway thank you very much
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...