首页
外语
计算机
考研
公务员
职业资格
财经
工程
司法
医学
专升本
自考
实用职业技能
登录
公务员
#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
28
问题
#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://jikaoti.com/ti/XjU3FFFM
本试题收录于:
计算机专业知识题库事业单位考试分类
0
计算机专业知识
事业单位考试
相关试题推荐
山东省省会城市经济圈的区域优势体现在()。①地处山东腹地,位于运河下游②东临黄海,与韩国、日本隔海相望③南接长江三角洲地区④北邻京津冀、与半岛城市群、中原城市群相连⑤是山东半岛与华东、华北和中西部地区连接的重要门户
我国基础教育课程改革要求教师重视对学生能力的培养,即学生能够解释、推论、组织、综合、评价、应用所学的知识以解决问题。从教育心理学的角度看,这实际是学生知识的()的问题。
下列关于性别差异心理的说法,正确的是()。
在德育历史发展过程中,其原理、原则和内容、方法等存在一定的共同性,因此,德育具有()。
受动物习性中印刻现象研究的影响,心理学家提出儿童的心理机能的发展存在()。
在教育实验研究中,自变量就是无需操作便会自然发生变化的那些变量。()
一台IP地址为202.93.120.44的主机需要发送一个有限广播包,它在IP数据报中应该使用的目的IP地址为()。
一条指令必须包括()。
组成计算机指令的两部分是()。
一台主机上连接若干终端设备,支持多个用户同时使用的工作方式叫作()。
随机试题
设某商品的需求量Q为价格P的单调减函数:Q=Q(p),其需求弹性η=>0,求:求P=6时总收益对价格弹性,并说明其经济意义.
NursingatBethIsraelHospitalproducesthebestpatientcarepossible.Ifwearetosolvethenursingshortage,hospitaladmin
下列有关细胞死亡的描述中,哪项不正确?
企业缴纳的下列税金中,应通过“应交税费”科目核算的有()。
行政部门承办的责任是()。
从所给四个选项中,选择最合适的一个填入问号处,使之呈现一定的规律性:
法国的()将电影引向戏剧道路。
FrankWebb,anAmericanpilotwhofirstflewagliderattheageof14,madehisfirstflightaloneonhis16thbirthdayandgot
WhathappenedonOctober21,1833?
(1)RogerRosenblatt’sbookBlackFiction,inattemptingtoapplyliteraryratherthansociopoliticalcriteriatoitssubject,su
最新回复
(
0
)