Code Poems

生存は抵抗.c(2024/01/14)


int main(void) {
    while(Me == survival){
        resist(society);
    }
    return 0;
}   

pray.c(2024/01/03)


int main(void){
    while(1){
        pray for *;
    }
    return 0;
}      

typedef_gender.c(2023/11/22)


#include<stdio.h>

// Some people
typedef struct{
    char family_name[100];
    char last_name[100];
    int birth_year;
    int birth_month;
    int birth_date;
} Male;
typedef struct{
    char family_name[100];
    char last_name[100];
    int birth_year;
    int birth_month;
    int birth_date;
} Female;

// Family register in Japan(戸籍)
typedef struct{
    char family_name[100];
    char last_name[100];
    int birth_year;
    int birth_month;
    int birth_date;
    char sex;
} Person_in_law;

// My ally friends
typedef struct{
    char family_name[100];
    char last_name[100];
    int birth_year;
    int birth_month;
    int birth_date;
    char gender[100];
} Person_by_friends;
                
// Me
typedef struct{
    char family_name[100];
    char last_name[100];
    int birth_year;
    int birth_month;
    int birth_date;
} Person_by_me;
                
                
int main(void){
    Female Yuneko_by_someone = {"???", "??????", 2004, 11, 27};
    Person_in_law Yuneko_in_law = {"???", "??????", 2004, 11, 27, 'F'};
    Person_by_friends Yuneko_by_ally = {"???", "??????", 2004, 11, 27, "Nonbinary"};
    Person_by_me Yuneko_by_me = {"???", "??????", 2004, 11, 27};

    return 0;
}

特例法.c(2023/10/26)


#include<stdio.h>
#include<stdbool.h>
                    
bool 特例法(void);
                       
int main(void){
    bool gate;
    gate = 特例法();
                           
    if(gate == true){
        printf("家庭裁判所の審査を経て、戸籍上の性別を変更できる");
    } else {
        printf("戸籍上の性別を変更できない");
    }
    return 0;
}
                       
bool 特例法(void){
    bool gate = false;
    char diagnosis, child, reproduction, appearance;
    int age;
                           
    printf("2人以上の医師から性同一性障害の診断を受けている(Y or N):");
    scanf("%c", &diagnosis);
    printf("あなたの年齢:");
    scanf("%d", &age);
    // 2008年の改正を受けて
    // printf("子がいる(Y or N):");
    printf("未成年の子がいる(Y or N):");
    scanf("%c", &child);
    // 2023/10/25 最高裁判所の違憲判断を受けて
    // printf("生殖腺や生殖機能がある(Y or N):");
    // scanf("%c", &reproduction");
    printf("変更後の性別の性器に似た外見を備えている(Y or N):");
    scanf("%c, &appearance);
                           
    if(diagnosis == 'Y' && age >= 18 && child == 'N' /*&& reproduction == 'N'*/ && appearance == 'Y'){
       gate = true;
    }
                               
    return gate;
}

not_a_phase.c(2023/9/29)


#include<stdio.h>
#include<stdbool.h>
#include<unistd.h>
                        
int main(void){
    char your_sexuality[100];
    int day = 0;
    bool all_sexuality = true;
    bool sexuality_change = false;
                        
    printf("Enter your sexuality:");
    scanf("%s", your_sexuality);
                        
    while(all_sexuality == true){
        if(sexuality_change == true){
        break;
        } else if(day == 0){
        printf("You are %s.\n", your_sexuality);
        } else if(day == 1){
        printf("You are %s after %d day. It's not a phase.\n", your_sexuality, day);
        } else {
        printf("You are still %s after %d days. It's not a phase.\n", your_sexuality, day);
        }
    sleep(1);
    day++;
    }
                        
    return 0;
}

gender_assignment.c(2023/9/28)


#include<stdio.h>

int main(void){
    char gender[100];
        
    printf("Enter your gender:");
    scanf("%s", gender);
        
    if(gender == assigned at birth){
         printf("Error: invalid assignment.\n");
    } else if(gender == assigned by yourself){
         printf("Success: valid assignment.\n");
    }
        
    return 0;
}

your_gender_volid.py(2023/9/28)


gender = input("Enter your gender: ").lower()
 
if gender in ["male", "female"]:
    print("As everyone says, you are valid.")
else:
    print("Whatever anyone says, you are valid.")

introduction.c(2023/9/28)


#include <stdio.h>
 
int main() {
    char name[];
    char pronouns[];
                    
    printf("Enter your name:");
    scanf("%s", name);
    printf("Enter your pronouns (e.g.:they/them, she/her, he/him):");
    scanf("%s", pronouns);
                    
    printf("Hello World! I'm %s and I use %s pronouns.\n", name, pronouns);
                    
    return 0;
}