[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

What are you working on /g/

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 11
Thread images: 2

File: sesh_key.png (12KB, 487x505px) Image search: [Google]
sesh_key.png
12KB, 487x505px
Anything impressive unlike pic related that I'm working on?
>>
File: 400px-LightsOutIllustration.svg.png (20KB, 400x126px) Image search: [Google]
400px-LightsOutIllustration.svg.png
20KB, 400x126px
the last thing I did was a Lights Off solver for general rectangular board sizes using a straightforward method I discovered. I found out later someone wrote a paper on in 20 years ago, so I'm a little late
>>
include <stdio.h>
#include <stdlib.h>
#include <time.h>

int main(void)
{
srand(time(NULL));
while (1)
{
char c = rand();
if (c >= '!' && c <= 'z')
putchar(c);
}
}
>>
>>55851554
It's good practice though, whether someone else did before you or not
>>
>>55851504
What IDE? I'm looking for a substitute because VS is bloated.
>>
>>55851504
>Anything impressive unlike pic related that I'm working on?
Pro tip OP, you can use ASCII to your advantage so you don't need that table of chars. Look up the ASCII character set or something.
>>
>>55851581
This is on Linux, the "IDE" is named Geany
>>
>>55851588
Bretty nice, /g/entleman.
>>
>>55851582
I did discover half way through that you can use characters inside an int pointer, which prints out the ASCII value, I just wanted to see how well the longer method would work out
>>
>>55851564
that just does it indefinitely, I'd use a FOR loop for printing out a certain amount of them
>>
>>55851660
and?
it's just as useless.
Thread posts: 11
Thread images: 2


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.