#include <stdio.h>
typedef struct {
char name[50]; // 配列として定義
int age;
int id;
} Student;
int main(void) {
Student student;
// 名前は文字列なので、strcpy関数でコピーする必要がある
strcpy(student.
name, "tanaka yuji"); // <string.h>が必要 student.age = 19;
student.id = 32435323;
// student.name は文字列なので %s で表示
printf("%s %d %d\n", student.
name, student.
age, student.
id);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0eXBlZGVmIHN0cnVjdCB7CiAgICBjaGFyIG5hbWVbNTBdOyAvLyDphY3liJfjgajjgZfjgablrprnvqkKICAgIGludCBhZ2U7CiAgICBpbnQgaWQ7Cn0gU3R1ZGVudDsKCmludCBtYWluKHZvaWQpIHsKICAgIFN0dWRlbnQgc3R1ZGVudDsKCiAgICAvLyDlkI3liY3jga/mloflrZfliJfjgarjga7jgafjgIFzdHJjcHnplqLmlbDjgafjgrPjg5Tjg7zjgZnjgovlv4XopoHjgYzjgYLjgosKICAgIHN0cmNweShzdHVkZW50Lm5hbWUsICJ0YW5ha2EgeXVqaSIpOyAvLyA8c3RyaW5nLmg+44GM5b+F6KaBCiAgICBzdHVkZW50LmFnZSA9IDE5OwogICAgc3R1ZGVudC5pZCA9IDMyNDM1MzIzOwoKICAgIC8vIHN0dWRlbnQubmFtZSDjga/mloflrZfliJfjgarjga7jgacgJXMg44Gn6KGo56S6CiAgICBwcmludGYoIiVzICVkICVkXG4iLCBzdHVkZW50Lm5hbWUsIHN0dWRlbnQuYWdlLCBzdHVkZW50LmlkKTsKCiAgICByZXR1cm4gMDsKfQo=