Linker
short 

所属分类:数据结构
开发工具:C/C++
文件大小:278KB
下载次数:9
上传日期:2012-06-05 20:09:54
上 传 者wanglin7
说明:  1.编写一个函数Create(),该函数可以用于创建一个链表,链表中的结点包括学号,成绩,具有双向指针,该函数返回链表的头指针。 so on 20:05:11 初期动态输入学生人数(1-35)学号:char型,5位数字,不足5位的前面补0,数字以外时要提示错误信息;成绩:short型,最大值100,大于100或者小于0或者数字以外时要提示错误信息。注意:输入的信息超过相应的位数时,只取前面相应位数的信息。 so on 20:14:56 2.编写一个函数Sort(),该函数可以对函数Create()创建的链表按学号和成绩进行升序排序,该函数返回排序后的链表的头指针。(可以有相同学号,先按学号升序排序,学号相同的就按成绩排序)3.编写一个函数OutPut(),该函数根据学号输出链表中相应节点的学生的成绩。(输入一个学号,查找相应的成绩,输入的学号不存在,要提示没有这个学生)4.编写一个函数MemoryFree(),该函数释放函数Create()中分配的内存。(释放内存要提示内存是否释放成功)5.编写一个main函数,调用上述四个函数,实现创建,排序,输出,释放的功能
((1) write a function Create (), this function can be used to create a linked list node in the linked list, including learning, achievement, with two-way pointer, the function returns a linked list head pointer. so on 20:05:11 Initial dynamic input the number of students (1-35) Student ID: char, 5 figures, less than five in front of complement 0, figures other than to prompt an error message results: short type, maximum 100, greater than 100 or smaller other than 0 or digital error message. Note: The information entered exceed the corresponding number of bits, just take the front of the corresponding median. so on 20:14:56 (2) write a function Sort (), the function can be a function Create () create the linked list in ascending order by student number and achievements, the function returns the sorted linked list head pointer. (The same school, the press learn sorted in ascending order, the same student number sort by score). Write a function OutPut (), this function results accordi)

文件列表:
Linker (0, 2012-05-24)
Linker\Debug (0, 2012-05-24)
Linker\Debug\Linker.bsc (58368, 2012-05-24)
Linker\Debug\Linker.exe (200789, 2012-05-24)
Linker\Debug\Linker.ilk (237024, 2012-05-24)
Linker\Debug\linker.obj (17432, 2012-05-24)
Linker\Debug\Linker.pch (205964, 2012-05-24)
Linker\Debug\Linker.pdb (517120, 2012-05-24)
Linker\Debug\linker.sbr (12479, 2012-05-24)
Linker\Debug\vc60.idb (50176, 2012-05-24)
Linker\Debug\vc60.pdb (53248, 2012-05-24)
Linker\linker.c (6608, 2012-05-24)
Linker\Linker.dsp (3399, 2012-05-24)
Linker\linker.dsw (520, 2012-05-24)
Linker\linker.h (973, 2012-05-24)
Linker\Linker.ncb (50176, 2012-05-24)
Linker\Linker.opt (48640, 2012-05-24)
Linker\Linker.plg (746, 2012-05-24)

近期下载者

相关文件


收藏者