编程题(15_01.c) 结构 struct student { long num char name[20] int score struct student *next } 链表练习: (1).编写函数struct student * creat(int n),创建一个按学号升序排列的新链表,每个链表中的结点中 的学号、成绩由键盘输入,一共n个节点。 (2).编写函数void print(struct student *head),输出链表,格式每行一个结点,包括学号,姓名,分数。 (3).编写函数struct student * merge(struct student *a,struct student *b), 将已知的a,b两个链表 按学号升序合并,若学号相同则保留成绩高的结点。 (4).编写函数struct student * del(struct student *a,struct student *b),从a链表中删除b链表中有 相同学号的那些结点。 (5).编写main函数,调用函数creat建立2个链表a,b,用print输出俩个链表;调用函数merge升序合并2个 链表,并输出结果;调用函数del实现a-b,并输出结果。 a: 20304,xxxx,75, 20311,yyyy,89 20303,zzzz,62 20307,aaaa,87 20320,bbbb,79 b: 20302,dddd,65 20301,cccc,99 20311,yyyy,87 20323,kkkk,88 20307,aaaa,92 20322,pppp,83
上传时间: 2016-04-13
上传用户:zxc23456789
某旅馆有n个等级的房间,第i等级有a个房间,每个等级有b个床位(1<=i<=n). 模拟旅馆个管理系统中床位的分配和回收功能,设计能为单个旅客分配床位,在其离店便回收床位(供下次分配)的算法
标签: 房间
上传时间: 2016-04-14
上传用户:VRMMO
提出了利用FPGA的现场可编程以及可并行处理的特性,对基于人工神经网络的图像处理结构进行自动生成的一种技术。作者:Andre B. Soares, Altamiro A. Susin,Leticia V. Guimaraes
上传时间: 2016-04-14
上传用户:gxf2016
Swfdec still is development software, but has also followed a rigid no-crashes-allowed policy. I believe it s stable enough now to be installed as a default plugin for people that can live with occasional crashes of their browser. But don t blame me if it does crash. File a bug at https://bugs.freedesktop.org/enter_bug.cgi?product=swfdec
标签: no-crashes-allowed development followed software
上传时间: 2016-04-14
上传用户:franktu
1) Write a function reverse(A) which takes a matrix A of arbitrary dimensions as input and returns a matrix B consisting of the columns of A in reverse order. Thus for example, if A = 1 2 3 then B = 3 2 1 4 5 6 6 5 4 7 8 9 9 8 7 Write a main program to call reverse(A) for the matrix A = magic(5). Print to the screen both A and reverse(A). 2) Write a program which accepts an input k from the keyboard, and which prints out the smallest fibonacci number that is at least as large as k. The program should also print out its position in the fibonacci sequence. Here is a sample of input and output: Enter k>0: 100 144 is the smallest fibonacci number greater than or equal to 100. It is the 12th fibonacci number.
标签: dimensions arbitrary function reverse
上传时间: 2016-04-16
上传用户:waitingfy
炸弹超人游戏c语言简板 ,两个人碗的,A控制WASD空格,B控制光标键和回车 命数,关的风格自己在文件头自己搞定;可以吃的道具由种分别加威力和雷数(最多8个)--简单的16色游戏。
标签: c语言
上传时间: 2016-04-27
上传用户:lhw888
输入四个点,判断此四点是否可形成一个平行四边形。 程序中描述了一个抽象数据类型Vector2D,表示一个向量。具有(x,y)两个值。其本身具有减另一个向量(minus(Vector2D)),判断自身是否为零向量(iszero()),与另一个向量对应值y,x乘积之差(inner(Vector2D))。由于两个向量平行,则乘积之差x1*y2-x2*y1=0。点A,B,C,D四点组成平行四边形的条件是AB//CD,BC//DA且各个向量皆不为零向量。 首先声明四个向量。向量i获得值的方法是由getPoint(int i)获得。然后根据Vector2D重载后的toString()函数将各个向量输出查看。最后判断此四点是否可组成平行四边行。
标签: 输入
上传时间: 2016-04-30
上传用户:qq521
一个BT种子文件察看工具,很不错 可以解释B编码的文件 BENCODING
标签:
上传时间: 2016-05-01
上传用户:www240697738
一个简单的药店进,销,存系统。 本程序主要面向三类权限的用户:药库管理员、药品出售员、一般患者。他们分别具有以下基本权限: 1) 一般患者 具有查询药品价格、类别等一般信息,不能进行修改、添加。 2) 管理员 主要负责系统维护工作,包括增加用户删除用户,数据备份与初始化等。 3) 出售员 出售员只能按处方出售药品,不能修改药品价格等信息。 以上各种用户的基本需求,为了最大程度的方便用户,我们还提供以下功能: a. 当管理员登录时,对于库存低的药品会给出警示,药品的最低库存可自行设制。 b. 对每个月每种药品的销量做出统计,并作出示意图。 c. 数据备份、恢复
标签:
上传时间: 2016-05-05
上传用户:离殇
追敢法,主要是n阶线形方程组Ax=b的列主元高斯消去法的一个特殊情况,为上三角矩阵,通用程序如附件所示
标签:
上传时间: 2016-05-16
上传用户:coeus