Search:

Type: Posts; User: alvarito

Search: Search took 0.01 seconds.

  1. If I dont use fflush(stdin) my console vanishes...

    If I dont use fflush(stdin) my console vanishes right after scanf
    I ll have a look to that stuff but it is not so much about how to pass arrays as arguments, it is how to connect all the functions...
  2. working sample for sorting arrays but I use globals, would prefer better style

    Hello everybody


    I have a working sample that gets your input for an array and sorts your numbers afterwards. It works but I am using globals and I believe it aint good. However, because there...
  3. Ok thank you, I see. Out of your proposals some...

    Ok thank you, I see. Out of your proposals some are complicated some are not that much, however it looks like only the complicated ones are the ones that provide a true solution. I ll study the link...
  4. Structure, coded it, works, want to "upgrade" it

    Hello

    I am punching in the shadows with the structure code and got to evolve a bit since the first day (two weeks ago) I saw the word "C basics".

    So this does create the structure, stores the...
  5. You mean, line 26 overwrites line 15 ? that is,...

    You mean, line 26 overwrites line 15 ? that is, he declares once an array of pointers to structure

    struct node *p[M]

    and then again he declares another pointer to structure

    struct node...
  6. alright, thank you. I will examine that in depth....

    alright, thank you. I will examine that in depth. I first started with basics and then jumped to get some more complicated examples to progress in understanding. I m going to work on this one to...
  7. @Greaper: I believe the dynamic memory allocation...

    @Greaper: I believe the dynamic memory allocation to structure is meant because even if you set a maximum length for its members, that gives anyway variable needs of memory in the structure itself. I...
  8. Structures, code completed. Creating the comments

    Hello


    I have a sample of unexplained code snippet of which I am trying to make sense by writing the comments myself. In looking at it from above, it looks like a linked structure, sort of the...
  9. Thank you very much "rmatze", and "Greaper" I...

    Thank you very much "rmatze", and "Greaper" I appreciate the time you took. Definitively that did the trick. Now I ll continue on to my next step.

    best regards

    Al
  10. Structure, user input and printing out results

    Hello

    well, I am trying to build a structure, on a self learning purpose, and while I know other primitive ways of filling the structures, I want it this way. Actually that the user is prompted to...
  11. yes, i noted it above i finally got it thanks a...

    yes, i noted it above i finally got it thanks a lot
  12. Hello Salem thank you for the attention...

    Hello Salem

    thank you for the attention dedicated. Well yes, I know that when I pasted the call here, I left out the end curly bracket but since it is not executing here I did not mind. Yes, I...
  13. Hello Salem thank you for the attention...

    Hello Salem


    thank you for the attention dedicated. Well yes, I know that when I pasted the call here, I left out the end curly bracket but since it is not executing here I did not mind. Yes, I...
  14. pointer to function, sorting algorithm done but still parts unclear

    Hello


    I have this sorting algorithm using pointers to function. Yet, there is one part that I dont see how it works.(See UPDATE below if you want to see how I found my dumb missing...
  15. Graphic explanation Bidimensinal arrays pointers and addresses

    Hello

    I am building on a code snippet I posted before. I m trying to see how the memory addresses are for pointers themselves and for those where they point to.

    I am using a bidimensional...
  16. Replies
    9
    Views
    5,003

    Yes, I know what you mean, but in my development...

    Yes, I know what you mean, but in my development environment (windows and Dev C++, but I am moving to Linux asap) if I dont include that function, then the execution finishes right after the scanf,...
  17. Replies
    9
    Views
    5,003

    Thank you, I overlooked that evidence. That...

    Thank you, I overlooked that evidence. That avoided the crashing and seems to deliver the right values, I ll have a look at them but so far it pretty much allows me to examine results. Thanks a lot
    ...
  18. Replies
    9
    Views
    5,003

    Multidimensional Array Malloc

    Hello

    I am making my CPU burn hell and crash everytime I run this program, so there is some error either an infite loop or I dont know what, but it is meant to just assign on the fly from user...
Results 1 to 18 of 18