
c程序设计
K2I-
Nothing is impossible!
展开
-
使用全局变量,存放学生成绩,用主函数调用求出平均值、最高分、最低分
在一维数组内存放10个学生成绩,通过一个主函数调用,能求出平均分、最高分和最低分。程序如下:#include<stdio.h>float Max=0,Min=0;int main(){float average(float array [ ],int n);float ave,score[10];int i;printf(“please enter 10 scores:”);for(i=0;i<10;i++)scanf("%f",&score[i]);ave=原创 2020-11-17 12:12:34 · 1440 阅读 · 0 评论 -
C程序设计报告 通讯录管理开发
C程序设计报告 通讯录管理开发功能可能不足,还请谅解#include<stdio.h>#include<stdlib.h>#include<string.h>typedef struct _TEL_INFO{int no;char name[20];char tel_num[20];char phone_num[20];int code;char add[20];char rela_ship[20];}TEL,*PTEL;int menu(原创 2020-11-11 11:50:54 · 128 阅读 · 0 评论