| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1532 人关注过本帖
标题:一个链表用插入多个结点,怎么从键盘输入啊,有点混了
取消只看楼主 加入收藏
wll19901105
Rank: 1
等 级:新手上路
帖 子:27
专家分:0
注 册:2012-12-4
结帖率:100%
收藏
已结贴  问题点数:8 回复次数:0 
一个链表用插入多个结点,怎么从键盘输入啊,有点混了
#include <stdio.h>
#include <stdlib.h>
 
struct student
{
        int age;
        char name[10];
        struct student *next;
};
struct student *add(struct student *head)
{
        struct student *p = malloc(sizeof(struct student));
        p->next = head;
        head = p;
        return head;
}
搜索更多相关主题的帖子: head include return 
2012-12-14 13:01
快速回复:一个链表用插入多个结点,怎么从键盘输入啊,有点混了
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015972 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved