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...
Type: Posts; User: alvarito
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...
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...
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...
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...
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...
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...
@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...
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...
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
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...
yes, i noted it above i finally got it thanks a lot
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...
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...
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...
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...
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,...
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
...
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...