[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: 1712004778361695.png (675 KB, 812x770)
675 KB
675 KB PNG
Thanks to Pretty C now even you can write C programs!

https://github.com/aartaka/pretty.c

#include "pretty.h"

int main (int argc, string argv[])
{
if (argc above 1)
with (fclose, f, fopen(argv[1], "r"))
fortimes (line, 10)
with (free, buf, vector(200, char, 0))
when (fgets(buf, 200, f))
then print(buf)
otherwise 0;
else
println("Please provide an input file");
return EXIT_SUCCESS;
}

// type inference
var t = time(0);
let lt = localtime(&t);
local at = asctime(lt);
println(at);
>>
>>102950730
Pretty C? More like Pretty gay.
>>
>>102950730
incomprehensible COBOL retard nigger trash 0/10

>>102950760
fpbp
>>
File: reddit_license.jpg (96 KB, 873x1024)
96 KB
96 KB JPG
ebonics.h
#ifndef __EBONICS_H_
#define __EBONICS_H_
#include <stdio.h>
#define nigga int
#define lilnigga char
#define shoot *
#define be =
#define wuz ==
#define wuznt !=
#define start(x) {
#define end(x) }
#define shiiiet printf
#define n &&
#define shit 0==0
#endif


ebonics.c
#include "ebonics.h"

nigga main(nigga argc, lilnigga shoot shoot argv)
start (of da g ride)
nigga we be 1;
nigga kangz be 100;
while (we wuznt kangz n shit)
start (of wha ppl ruinin our lives man)
nigga three be we % 3;
nigga five be we % 5;
if (three wuz 0)
shiiiet("fizz");
if (five wuz 0)
shiiiet("buzz");
if (five wuznt 0 n three wuznt 0)
shiiiet("%d", we);
we be we + 1;
end (of kingz n shit egypt man)
end (of gangsta ride)
>>
File: 1295563756279.gif (1.66 MB, 320x240)
1.66 MB
1.66 MB GIF
>>102950814
CODE KINO.
Stay beautiful anon.
>>
'em
>>
>>102950814
kek
>>
File: 1673111366050835.jpg (166 KB, 489x448)
166 KB
166 KB JPG
>>102950814
>start (x) {
zamn, I've never thought about using define variables like that
>>
>>102951847
U betta
start(doing it now whiteboi)
end(cracka ass peckerwood)
>>
>2024
>C

lmao. boomers are really a special kind.
>>
File: 1729773585159.jpg (20 KB, 317x265)
20 KB
20 KB JPG
>>102950814



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.