Message from C, C++ discussions

November 2019

— Hmmm

— 

This is a hanoi tower program, i want to use while(1) to run next turn ,how to use realloc in this program ?
code:https://pastebin.com/Zqie9jsV
test:https://repl.it/frakw/He-Nei-Ta-hanoi

— Does anyone have experience with _Generic

— In C , to make use of something similar to Typeof that you would find in high level languages

— Not sure what you want to do, but _Generic won't be able to support "polymorphic types" in contrast to the common GetType() functions of other languages

Message permanent page

— So what exactly is it used for

— I read somewhere that you can use that with an enumeration to create something similar to Type dev

— Basically to support overloaded functions based on the type

— Is there way to start a function over if it doesn’t meet certain conditions but not at the beginning like recursion like , a few lines into the function ?

Message permanent page

— Call back?

— Or maybe I am wrong

— I think a call back is used for something like qsort