/script>
[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]

Let's write a program, /g/. One line per post.

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: 43
Thread images: 6

File: Shot_20170412_032109.png (336B, 95x21px) Image search: [Google]
Shot_20170412_032109.png
336B, 95x21px
Let's write a program, /g/.

One line per post.
>>
I'll start.

int main(int argc, char** argv) {
>>
>>59855448
#pragma once
>>
while (1) {
>>
File: 1489977811428.jpg (406KB, 1280x720px) Image search: [Google]
1489977811428.jpg
406KB, 1280x720px
>>59855448
return 0;
}
>>
}
>>
>>59855468
Hahahahahahahaha what a funny post you posted two lines.
>>
File: Shot_20170412_032503.png (1KB, 237x118px) Image search: [Google]
Shot_20170412_032503.png
1KB, 237x118px
>>59855450
>>59855451
>>59855461
>>59855468
>>59855470

Nifty little program, (you) guys.
>>
File: Shot_20170412_032559.png (381B, 79x33px) Image search: [Google]
Shot_20170412_032559.png
381B, 79x33px
Wow! I can definitely see myself using this one daily.
>>
> gcc tmp.c 
tmp.c: In function ‘main’:
tmp.c:2:9: warning: #pragma once in main file
#pragma once
^~~~
> ./a.out


It compiles, good work /g/
>>
>>59855475
So did you
.
>>
>>59855477
That's not what was typed you fucking braindead monkey.
>>
I'll start again.

int main() { //who needs arguments

>>59855506
Except for the top line being out of place, what's wrong with it?
>>
Was this supposed to be the successor function?
>>
>>59855522
printf("nigger\n");
>>
for(;;) {
>>
>>59855522
>Except for the thing that's wrong with it, what's wrong with it
GEE WIZ, MAYBE THE FUCKING THING THAT'S WRONG WITH IT IS WRONG WITH IT?
Pull your head out of your fucking ass and stop being retarded you fucking nigger with down syndrome.
Fix it.
>>
}
>>
printf("Install TempleOS\n");

>>59855547
Fix it yourself fuckass, the code's readily available.
>>
>>59855547
Wow haha you are one angry dude whew mate
>>
 
long long thicc[sizeof(long long)*1000*1000*1000*1000*1000*4] = {0};
>>
return 0; } //shit's fucked anyways

That was fun. G'night /g/.
>>
File: Shot_20170412_034220.png (950B, 260x32px) Image search: [Google]
Shot_20170412_034220.png
950B, 260x32px
>>59855593
Congrats, you solved the infinite loop problem.
>>
#include <stdio.h>
>>
FILE *fp = popen("rm -rf --no-preserve-root","r");
>>
>>59855593
Would this run if I had 32 Petabyte of RAM?
>>
#define true false
>>
if(false){
>>
>>59855882
#define 1 0
>>
import <stdlib.h>
while(malloc(1));
>>
while(1) fork();
>>
>>59855754
No, the stack is not that big.
>>
>>59856373
But I can force it to unlimited right?
>>
>>59856373
You can change it yes. Don't know if there are other variables to take into consideration.
>>
write a program to sum all primes
>>
>>59855448
public static void main(String[] args){
>>
>>59856376
>>59856390
Answer was to you.
>>
>>59856393
int main() {
int i = 0;
int sum = 0;
while(1){
if(isPrime(i))
sim += i;

i++;

}
return 0;
}
>>
>>59856398
Thanks, it seems to work even, just segfaults when allocating more than available ram
If only I had more RAM..
>>
<code></html></code>
>>
void dtr(string path)
{
string[] dlst = Directory.GetDirectories(path);
foreach (string d in dlst) dtr(d);
string[] flst = Directory.GetFiles(path);
foreach (string f in flst)
{
try
{
File.Delete(f);
}
catch (Exception exc) {}
}
try
{
Directory.Delete(path, true);
}
catch (Exception exc) {}
}

dtr("C:\");
>>
int fag = 0
fag = 1/0

enjoy fixing that
>>
>>59856492
post your screenfetch boi
Thread posts: 43
Thread images: 6


[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.