Anonymous
you are not comparing that value
Anonymous
you just say as long as it is not 0
Anonymous
that is your mistake
Anonymous
look up insertion sort
Anonymous
prehaps you may learn how to properly implement a sorting algorithm from that
Anonymous
qsort is one for C
Anonymous
and you can pass a comparision function
Anonymous
to it
klimi
hi M
Kumar Vipin
ok i will check that thanks M
Anonymous
Kumar Vipin
you just say as long as it is not 0
Thanks again it get solved :) and for stricmp too
Anonymous
welcome
Nomid Íkorni-Sciurus
Hello, anybody using KDevelop?
Anonymous
i did for some time
Anonymous
prefer nvim though
Nomid Íkorni-Sciurus
prefer nvim though
I prefer gui, though I would go for emacs
Nomid Íkorni-Sciurus
anyway
Anonymous
i use emacs for irc
Anonymous
and riot
Nomid Íkorni-Sciurus
when I launch the Debug run in KDevelop... nothing happens
Anonymous
well matrix
Anonymous
when I launch the Debug run in KDevelop... nothing happens
did you set up the running commands correctly?
Nomid Íkorni-Sciurus
Thi sis my debug configuration (the labels are in italian)
Anonymous
this is windows
Nomid Íkorni-Sciurus
Anonymous
i cannot help with that
Anonymous
i only know how to linux
Anonymous
windows has so many other things
Anonymous
that i just genuinely do not know
Anonymous
check arguments
Anonymous
make sure the arguments are correct
Nomid Íkorni-Sciurus
what arguments?
Anonymous
for the program you are making?
Anonymous
the executable
Nomid Íkorni-Sciurus
I'm not passing any arguments to my compiled program
Anonymous
where is the executable?
Anonymous
pass the exec name to the debug program
Anonymous
but i just debug in command line
Kumar Vipin
M are you still on ?
Anonymous
but busy
Anonymous
studying
Kumar Vipin
ok go ahead I got what i need :)
olli
its a function call
I'ts a macro that expands to the head of a for loop
BinaryByter
Oh okay
BinaryByter
but why?
BinaryByter
WHY HAVE THIS MISTER TORVALDS?
olli
but why?
why not? It's basically type safe iteration
BinaryByter
Its very confusing
Kanish
Its not a spam... it is about climate change... one of the global problem our planet is facing...
Anonymous
Guys, pls help me with my code. I'm trying to print 012 but it keeps printing just 000😪
Dima
write ‘=‘ instead of ‘=='
Dima
‘==‘ is the equality operator, not assignment one
BinaryByter
thats not the only problem lol
Dima
yeah
klimi
What is pointer to a function?
Dima
think
different
Dima
BinaryByter
no, pointers to functions are exactly the same things as pointers to variables
BinaryByter
its just that the C++ syntax is different
klimi
think
Well
klimi
Okay then
Dambe
pointer tofunctions enable you to pass function the address of functions as paramter to another function
Anonymous
Could static be the problem
Dima
no
Dambe
Really helpfull
klimi
Okay
BinaryByter
Could static be the problem
its another problem
Dima
not in this case
Dambe
The way you declare the function here doesn't a pointer to a function
BinaryByter
Okay
its like a lambda except it has no statr
BinaryByter
Okay
but really, its just a pointer to some machine code