没有合适的资源?快使用搜索试试~ 我知道了~
数据结构同学录.docx
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 106 浏览量
2022-07-11
16:24:25
上传
评论
收藏 30KB DOCX 举报
温馨提示
试读
5页
数据结构同学录全文共5页,当前为第1页。数据结构同学录全文共5页,当前为第1页。#include <malloc.h> 数据结构同学录全文共5页,当前为第1页。 数据结构同学录全文共5页,当前为第1页。 #include <stdio.h> #include <string.h> #include <stdlib.h> typedef struct Student { char id[20]; char name[20]; char date[20]; char phone[20]; char qq[20]; char adress[30]; char word[50]; struct Student *next; }Stud; Stud* add(Stud *head) { Stud *p=(Stud*)malloc(sizeof(Stud)); printf("请输入学号:");scanf("%s",p->id); printf("请输入姓名:");scanf("%s",p->name); printf("请输入生日:");scanf("%s",p->date); printf("
资源推荐
资源详情
资源评论
数据结构同学录
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
typedef struct Student
{
char id[20];
char name[20];
char date[20];
char phone[20];
char qq[20];
char adress[30];
char word[50];
struct Student *next;
}Stud;
Stud* add(Stud *head)
{
Stud *p=(Stud*)malloc(sizeof(Stud));
printf("请输入学号:");scanf("%s",p->id);
printf("请输入姓名:");scanf("%s",p->name);
printf("请输入生日:");scanf("%s",p->date);
printf("请输入电话:");scanf("%s",p->phone);
printf("请输入 QQ :");scanf("%s",p->qq);
printf("请输入地址:");scanf("%s",p->adress);
printf("请输入留言:");scanf("%s",p->word);
if(head==NULL)
{
head=p;
head->next=NULL;
}
else
{
p->next=head->next;
head->next=p;
}
return head;
}
void search(Stud *head,char id[])
{
Stud *p=head;
while(p!=NULL)
{ if(strcmp(p->id,id)==0)
资源评论
是空空呀
- 粉丝: 171
- 资源: 3万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功