/dpt/ - Daily Programming Thread

Old thread: What are you working on, Jow Forums?

Attached: 76691324_p0.png (1358x1359, 1.06M)

Other urls found in this thread:

lmgtfy.com/?q=systemd&iie=1
nim-lang.org/faq.html
twitter.com/AnonBabble

First for Haskell!

>work as a C++ programmer
>they keep giving me jobs where I have to write SQL and Powershell scripts

Attached: 1566748120253.png (551x491, 261K)

First for Nim is best language

This doesn't look like a good design. I wonder how I can make this combo box text scrollable. Plus I need to find a way to put default values into them as well.

Attached: Screenshot from 2019-09-16 19-35-11.png (3840x2160, 611K)

sasuga hasklel

this took me almost 8 hours

Attached: Screenshot from 2019-09-16 18-14-37.png (1366x768, 566K)

Is there a better way to make my output consistent? My prof said it was good of me to actually add this when no one else did.

if (hour < 12 && minute/10 == 0){
printf("The equivalent 12 hour time is %d:", hour==0?12:hour);
printf("0%d AM", minute);
}

else if (hour < 12){
printf("The equivalent 12 hour time is %d:%d AM", hour==0?12:hour, minute);
}

else if (hour > 12 && minute/10 == 0){
printf("The equivalent 12 hour time is %d:", hour==12?12:(hour - 12));
printf("0%d PM", minute);
}

else{
printf("The equivalent 12 hour time is %d:%d PM", hour==12?12:(hour - 12), minute);
}

answer plz

Any of y'all use elastic search?