首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
公务员
#include #includedstdlib.h> typedef struct student{ int hum; char name[20]; char sex; int age; }LIST; LIST*creat
#include #includedstdlib.h> typedef struct student{ int hum; char name[20]; char sex; int age; }LIST; LIST*creat
admin
2014-01-13
70
问题
#include
#includedstdlib.h>
typedef struct student{
int hum;
char name[20];
char sex;
int age;
}LIST;
LIST*create((1))
{LIST*head=NULL,*newNode,*tail;
int i=0:
for(i=0;i
{
(2);
printf(”\nlnput the information of student%d(name,nuln,sex,age):”i+1);
seanf(”%S%d%C%d”,%newNode->name,l-newNode->num,g
一>sex,&newNode->age);
newNode->next=NULL;
if(i==0)
(3);
else
tail->next=newNode;
tail=newNode;
}
(4);
}
void 0utputUst(LIST*head)
{LIST*p=head;
while(P!=NUI。L){
printf(”\n%d%s%c O//,d”,p->num,P->name,p->sex,p-age);
(5);
)
}
void main( )
{
LIST*L:
L=create(10);
OutputIist(L):
}
选项
答案
(1)int n (2)DewN0de=(LIST*)malloc(sizeof(LIST)) (3)head=rleviNode (4)returneacl (5)p=p->next
解析
转载请注明原文地址:https://kaotiyun.com/show/Bial777K
本试题收录于:
计算机专业知识题库事业单位考试分类
0
计算机专业知识
事业单位考试
相关试题推荐
中央城镇化工作会议于2013年12月12日至13日在北京举行。会议指出,城镇化与工业化一道,是现代化的两大引擎。走中国特色、科学发展的新型城镇化道路,核心是以人为本,关键是提升质量,与工业化、信息化、农业现代化同步推进。会议提出了推进农业转移人口市民化;(
衡量一个人道德水平的标准是()。
下列关于洋务教育说法中,正确的有()。
【2012年烟台市市直真题】心理咨询中常用的治疗方法与技术有()。
在斯金纳的操作条件反射理论中,最重要的一个概念是()。
人的精神力量、情绪状态对整个机体能起到调节作用,帮助人战胜疾病和残疾,使身心得到发展,这种现象说明了个体身心发展具有()。
阅读下面的案例,回答以下题。某市教育局下发了红头文件《中小学教育工作者家访暂行规定》,将家访活动重新推到现代教育的前沿,在社会上引起强烈的反响,同时,上海、广州等多地的一些学校流行起了“电子家访”,老师向家长公布自己的电子邮箱或QQ、微信号码,方
格式塔心理学家认为,学习所迁移的不是两个学习情境的共同成分,而是两个学习情境中()。
计算机中,当前应用最普遍的字符编码是()。
structemployee(10nghum;floatsalary;slructemployee*next;);intn;structemployee*Create-(){struc
随机试题
咳嗽变异性哮喘的诊断标准是什么?
丹栀逍遥散适用于下列哪种病证:
A.9cmB.11cmC.9.5cmD.10cmE.8.5cm坐骨棘间径正常平均值是()
最可能的诊断是( )。该病人首要的护理问题是( )。
流体的物理性质包括()。①易流动性②黏滞性③惯性④压缩性⑤热胀性
在下列社会现象中,属于上层建筑的有()。
Access中表和数据库的关系是()。
Structurally,theinsideofearlyChristianchurcheswasquitesimple.
Throughoutthepastcenturyhumanitydideverythinginitspowertocontrolnature.Wedammedearth’srivers,choppeddownthef
Youshould______theofficialchannelstogethelpinsteadofthroughprivaterelationship.
最新回复
(
0
)