Search:

Type: Posts; User: simone.marras

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Thank you S.

    Thank you
    S.
  2. It indeed does, but why this though? thank...

    It indeed does, but why this though?

    thank you very much for helping!
  3. I solved it in the following way, although I...

    I solved it in the following way, although I would have liked for the pointers to be assgigned the strings directly through fscanf:



    fscanf(file_ID, "%s %s %s\n", header, prob,...
  4. fscanf with pointer of strings *string[]

    Hi there,

    I am reading a file that contains both numbers and strings; by reading it sequentially, everything goes well when reading floats and assigning their values to an array previously...
  5. Replies
    17
    Views
    2,649

    I use g++

    I use g++
  6. Replies
    17
    Views
    2,649

    Hi again; actually, the problem is that I don't...

    Hi again; actually, the problem is that I don't get either warnings or errors, that is why I couldn't understand what was going on.
    At this point I'll pass directly to C++ next. I have a working C...
  7. Replies
    17
    Views
    2,649

    Hi Elysia, Sorry about my distraction. I put a...

    Hi Elysia,

    Sorry about my distraction. I put a print for Input.msh_generator instead Input.msh_file because the same operation is actually done on Input.msh_generator; I just edited the code now...
  8. Replies
    17
    Views
    2,649

    Hi there Elysa; thanks for replying; I believe...

    Hi there Elysa; thanks for replying; I believe that fscanf(file_ID, "%s", &Input.msh_file) assigns to Input.msh_file the variable read inside file_ID in the order given by the file itself?

    From...
  9. Replies
    17
    Views
    2,649

    Thanks about the hint. Then this was my initial...

    Thanks about the hint. Then this was my initial question; how is it supposed to be done?
    That is why I am using this forum;

    Regards
    S.
  10. Replies
    17
    Views
    2,649

    It actually does; it reads it a string and...

    It actually does; it reads it a string and assigns it to the variable msh_file:



    void Mesh::void Mesh::ReadInput(char *input_file, char *msh_generator, char *mesh_file, int *nsd)
    {
    FILE...
  11. Replies
    17
    Views
    2,649

    Hi again; actually I left some variables in this...

    Hi again; actually I left some variables in this forum although they are not used within this simplified version of the code. All those variables are actually used, and the problem that occurs is...
  12. Replies
    17
    Views
    2,649

    Hi there, thanks for replying. It's actually a...

    Hi there, thanks for replying. It's actually a mixed of C/C++ because most of the functions I am using I had them already written in C. However, I used a new thing that I need to solve as an excuse...
  13. Replies
    17
    Views
    2,649

    returning class and struct members

    Hi there; this question may be trivial to some, since I am new to C++, although I come from C.

    I have a struct that defines a type (typeInput), and a class with a funtion that uses some of the...
  14. Replies
    6
    Views
    2,014

    Thank you, Ill manage S.

    Thank you, Ill manage
    S.
  15. Thank you a lot, I will try it sometime soon. ...

    Thank you a lot, I will try it sometime soon.
    All the best
  16. Replies
    6
    Views
    2,014

    Thank you very much for the hint; I do...

    Thank you very much for the hint;

    I do programming for math applications and Im barely learning on this; it surely helps learning by these suggestions

    One more question, do you do C++ as well?...
  17. thank you, but if I use a std::vector to declare...

    thank you, but if I use a std::vector to declare COORDS, how would I access the elements of the struct?

    thanks again
  18. Replies
    6
    Views
    2,014

    Hello MK, thank you very much for helping: I...

    Hello MK,

    thank you very much for helping: I really appreciate it

    All the best
    S.M.
  19. allocatable arrays in CLASSes and STRUCTS

    Hi there,

    I am using a struct and a Class whose elements may be arrays. I would like though, for these arrays to be dynamically allocatable when I declare them in the Class and main code; how is...
  20. Replies
    6
    Views
    2,014

    Struct types and dynamic arrays

    Hi there,

    I am using a struct whose elements may be arrays. I would like though, for these arrays to be dynamically allocatable when I declare them in the main code; how is it supposed to be...
  21. Thanks! have a nice weekend s.

    Thanks!

    have a nice weekend
    s.
  22. Hi Salem, yes, it is indeed so; I actually found...

    Hi Salem, yes, it is indeed so; I actually found a bug on a previous code I wrote when I ported it from Linux to Mac. It was actually a bug that for some reason wouldn't raise problems under linux....
  23. Hello Salem, thanks for replying; yes, actually...

    Hello Salem, thanks for replying; yes, actually everything was allocated and it works fine on another machine. Anyhow, I think I can solve it by recoding it in a different way.

    Thank you very much...
  24. malloc error can't allocate region on mac os X

    Hi everyone;

    Unexpectedly I am receiving a dynamic memory allocation error in my code when running on a Mac OS X (10.5), while that does not happen when I compile and execute the same code on a...
  25. Replies
    16
    Views
    2,063

    I meant to return from the function because this...

    I meant to return from the function because this is the last command to run; should I use break or return would exit the function directly?

    On the other hand, I just realize that I cannot use...
Results 1 to 25 of 61
Page 1 of 3 1 2 3