Skip to content

Instantly share code, notes, and snippets.

View kokosabu's full-sized avatar

MIURA Yasuyuki kokosabu

View GitHub Profile
Verifying my Blockstack ID is secured with the address 1PQ4wUCf4abL6tVyKyiWwdLL451Rr6exbW https://explorer.blockstack.org/address/1PQ4wUCf4abL6tVyKyiWwdLL451Rr6exbW
0xDbd6320b371c99Ce07655C322F229e3aBc3EEeC8
#include <stdio.h>
int main()
{
int i;
fprintf(stdout, "stdout:%d\n", 10);
fprintf(stderr, "stderr:%d\n", 10);
printf("fclose(stdout)\n");
#!/usr/local/bin/perl -w
use strict;
use Encode;
use LWP;
sub getFilename {
my ($filename) = @_;
$filename =~ s/.*wgTitle="(.*?)".*/$1/s;
#include <stdio.h>
#include <stdlib.h>
struct func {
int (*add)(int i, int j);
int (*sub)(int i, int j);
};
int add(int i, int j)
{
/*
register int a; <- コンパイルできない
auto int b; <- コンパイルできない
*/
static int c; /* ローカル変数と呼んでる */
extern int d; /* グローバル変数を他で使用する場合の宣言。 */
/* 普段はヘッダファイルに記載して、 */
/* インクルードしてる */
int d; /* グローバル変数と呼んでる */
#include <stdio.h>
int main()
{
FILE *input;
char buf[16];
input = fopen("num.txt", "r");
if(input == NULL) { return -1; }
#include <stdlib.h>
int main()
{
return system("seq 1 100");
}
#include <stdio.h>
#define each(S,E,V,Func) \
do { \
for(int V = (S); V <= (E); V++) { \
Func\
} \
}while(0)
int main()
#include <stdio.h>
int main()
{
printf("1\n");
printf("2\n");
printf("3\n");
printf("4\n");
printf("5\n");
printf("6\n");