📄 ch23-3.c
字号:
#include <stdio.h>
struct student /* 定义结构体类型 */
{
int num;
float chinese;
float computer;
};
void main()
{
int i;
struct student stud[3];
printf("Please input the num, chinese, computer:\n");
for(i=0;i<2;i++)
{
scanf("%d%f%f",&stud[i].num,& stud[i].chinese,& stud[i].computer);
printf("The score is: %d/%f/%f\n", stud[i]. num, stud[i].chinese,
stud[i].computer);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -