Mastodon#include

@mmu_man @aeris @lunar Faute de frappe : j'ai codé en C jusqu'en 1988. Il y aura bientôt 30 ans que je n'ai pas codé. A l'époque on utilisait un makefile avec make pour générer le binaire à partir d'un source C qui commençait par
#include <stdio.h>
et le versioning des sources sous Unix System V était fait avec SCCS :-)
Un lien pour découvrir Rust en ligne ?

@Connicpu

#include <stdio.h>

int main(int argc, char *argv[])
{
char username[] = "Connicpu";
printf("Welcome %s, nice to see a new face here!\n", username);
return 0;
}

@sir I thought musl would be fitting for most use cases, except for goddamn algorithmic competitions where people depend on __gcd and __builtin_popcount and #include <bits/stdc++.h>

<xkcd.h>
MY HOBBY: mispronouncing pun-based names and properly pronouncing complicated foreign names (like Polish ones).

Ubuntu 16.04/gcc 5.4.0でも再現できましたw

$ cat nou.c
#include <stdio.h>
#include <stdlib.h>

void
main(void)
{
int f = 0;
// フラグを立てる機能
f = 1;
printf("f=%d\n", f);
}
$ gcc nou.c && ./a.out
f=1
$ iconv -f UTF8 -t SHIFT-JIS nou.c > nou-sjis.c
$ gcc nou-sjis.c && ./a.out
f=0

#include <stdio.h>
int main(void)
{
int i;
for(i=1;;1++){
printf("%d\n", i);
}
return 0;

About C's implicit conversions - this prints "one point five" "wat".

<stdio.h>

int
main (void)
{
float one_point_five = 1.5;
float one_point_one = 1.1;

if (one_point_five == 1.5)
puts ("one point five");
else
puts ("wat");

if (one_point_one == 1.1)
puts ("one point one");
else
puts ("wat");

return 0;
}

If you use doubles, it works as expected. Explanation in the next toot.

Hah, my buddy Neels has started hacking on so he can work around selection of broken internet gateways:
github.com/OLSR/olsrd/pull/27/
Let's see how long he will wait. After one month I am still waiting on a patch that adds a missing statement to fix the BSD build.

#include <stdio.h>

int main (int argc,char **argv)
{
printf("Buen dia\n");
return 0;
}

完全版(のはず

#include <stdio.h>
main()
{
char wei[999];

printf("入力 ");
scanf("%s",wei);

printf("なまえ%s", wei);

return 0;

}

うん、完全に忘れてるな

「ハッシュタグ#include」でふいた。

...
fatal error: Python.h: No such file or directory

"Python.h"
...

`aptitude install python2.7-dev`

#include <iostream>
int main()
{
std::cout << char(53) << char(74) << std::endl;
return 0;
}