没有合适的资源?快使用搜索试试~ 我知道了~
学生成绩管理
需积分: 19 0 下载量 174 浏览量
2013-05-10
00:22:28
上传
评论
收藏 11.84MB ZIP 举报
温馨提示
#include<stdio.h>#include<malloc.h>#include<string.h>#include<stdlib.h>#define NULL 0#define LEN sizeof(struct student)struct student{ int num; char name[10]; int score; struct student *next;};int n;struct student *creat(){ struct student *head; struct student *p1,*p2; p1=p2=(struct student *)malloc(LEN); printf("请输入数据:\n"); printf("-学号---姓名---成绩-\n"); scanf("%d%s%d",&p1->num,p1->name,&p1->score); head=NULL; n=0; while(p1->num!=NULL) { n=n+1; if(n==1) head=p1; else p2->next=p1; p2=p1;
资源推荐
资源评论
资源评论
我是透明的
- 粉丝: 3
- 资源: 5
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功