⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ch23-3.c

📁 C语言程序设计上机指导与练习 冶金工业出版社 刘怀亮
💻 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 + -