/dpt/ - Daily Programming Thread

That's actually pretty difficult. Seems appropriate for an "over your head" kind of project.

fuck dude good luck! that sounds really interesting

Wait, does Jow Forums actually not follow tab-stops when expanding tabs, and just replaces it with 4 spaces?
That's pretty fucking shit. I don't know how I've never noticed that before.

Attached: 1369446960901.png (256x310, 20K)

Put it on github so I can use it.

>tfw it is this easy to make windows ignore windows key
Also ignores alt+tab and a bunch of other key strokes, only ctrl+alt+delete still worked.


LRESULT CALLBACK MyTaskKeyHookLL(int nCode, WPARAM wp, LPARAM lp)
{
return 1;
}


SetWindowsHookEx(WH_KEYBOARD_LL, MyTaskKeyHookLL, NULL, NULL);

Attached: 1479007291730.gif (230x290, 3.45M)

Attached: CppCon 2016 - Jason Turner “Rich Code for Tiny Computers - A Simple Commodore 64 Game in C++17”- (1280x720, 1.93M)

Brainlet here. I'm getting confused by eager evaluation vs lazy evaluation in practice?

You link says it goes like
void qsort(void *base, size_t nmemb, size_t size,
int (*compar)(const void *, const void *));


The const part says that the compare function can't alter data by itself.

awesome

that's a cool idea, and should be doable... if your's is web/browser based there out to be javascript frameworks for slideshows

The rule is: const qualifies whatever is on the right, unless there is nothing there; in which case it qualifies whatever is on the left.
char *const means the pointer cannot be changed, but the pointed to value can
const char * means what is pointed to cannot be changed, but the pointer can
const char *const means that neither can be changed.
Worth noting that const qualifiers don’t mean the value can’t be changed elsewhere on the program, only that it the user of the pointer cannot change it.

ok