📄 oz6.c
字号:
#include <stdio.h>
struct oz {
char actor[30];
char character[30];
int age;
};
void print_oz(struct oz info);
void main()
{
struct oz actor[4] = {
"Judy Garland", "Dorothy", 17,
"Ray Bolger", "Scarecrow", 35,
"Bert Lahr", "Cowardly Lion", 44,
"Jack Haley", "Tin Woodsman", 40
};
int x;
puts("Wizard of Oz Database!");
for(x=0;x<4;x++)
print_oz(actor[x]);
}
void print_oz(struct oz info)
{
printf("%s played %s",info.actor,info.character);
printf(", and was %i-years-old\n",info.age);
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -