一、课程设计题目、内容、要求 题目:《学生成绩管理系统》(第二套 难度:2) 内容:按要求完成的基础上,增加了输入学号查询学生记录的功能,和错误输入报错功能 要求: 1)输入将本班学生的信息(每个学生至少包括学号、姓名、科目成绩(三门)、学分、平均分)。 A.要求编写函数sort对个学生按某个条件(比如某科成绩,学号,学分)升序或降序(可选择)排序,并将结果(包括名次、学号、姓名、成绩、学分、平均分)显示出来。 B.编写函数find,用折半法查找某科某个成绩,并将结果打印出来。 C.要求编写函数fun找出所有及格的同学,并将他们的信息存显示出来。
标签: 管理系统
上传时间: 2015-11-12
上传用户:徐孺
一:需求分析 1. 问题描述 魔王总是使用自己的一种非常精练而抽象的语言讲话,没人能听懂,但他的语言是可逐步解释成人能听懂的语言,因为他的语言是由以下两种形式的规则由人的语言逐步抽象上去的: ----------------------------------------------------------- (1) a---> (B1)(B2)....(Bm) (2)[(op1)(p2)...(pn)]---->[o(pn)][o(p(n-1))].....[o(p1)o] ----------------------------------------------------------- 在这两种形式中,从左到右均表示解释.试写一个魔王语言的解释系统,把 他的话解释成人能听得懂的话. 2. 基本要求: 用下述两条具体规则和上述规则形式(2)实现.设大写字母表示魔王语言的词汇 小写字母表示人的语言的词汇 希腊字母表示可以用大写字母或小写字母代换的变量.魔王语言可含人的词汇. (1) B --> tAdA (2) A --> sae 3. 测试数据: B(ehnxgz)B 解释成 tsaedsaeezegexenehetsaedsae若将小写字母与汉字建立下表所示的对应关系,则魔王说的话是:"天上一只鹅地上一只鹅鹅追鹅赶鹅下鹅蛋鹅恨鹅天上一只鹅地上一只鹅". | t | d | s | a | e | z | g | x | n | h | | 天 | 地 | 上 | 一只| 鹅 | 追 | 赶 | 下 | 蛋 | 恨 |
上传时间: 2014-12-02
上传用户:jkhjkh1982
DirectX基础(初级篇) 1、什么是DirectX? 2、如何安装和使用DirectX 3、一个DirectDraw入门程序 4、DirectDraw图形编程基础知识 DirectDraw核心(高级篇) 1、DirectDraw架构 2、控制级 3、显示模式 4、DirectDraw对象 5、页面 6、调色板 7、裁减器 8、多显示器系统 9、高级DirectDraw主题 DirectDraw函数、结构参考 1、IDirectDraw2接口函数 2、IDirectDrawSurface3接口 3、IDirectDrawPalette接口 4、IDirectDrawClipper接口 5、全局函数
标签: DirectX DirectDraw 如何安装 图形编程
上传时间: 2014-01-12
上传用户:日光微澜
一、任务 设计并制作一台出租车计价器。 二、要求 1 、基本要求 (1 )不同情况具有不同的收费标准。 l 白天 l 晚上 l 途中等待(>10min 开始收费) (2 )能进行手动修改单价 (3 )具有数据的复位功能 (4 )IO 口分配的简易要求 l 距离检测使用霍尔开关A44E l 白天/晚上收费标准的转换开关 l 数据的清零开关 l 单价的调整(最好使用 +和 -按键) (5 )数据输出(采用LCM103 ) l 单价输出2 位 l 路程输出2 位 l 总金额输出3 位 (6 )按键 l 启动计时开关 l 数据复位(清零) l 白天/晚上转换 2 、发挥部分 l 能够在掉电的情况下存储单价等数据 l 能够显示当前的系统时间 l 语音播报数据信息 三、说明 (1 )时间要求 l 8 月7 日到8 日两天。 l 完成实际电路,总结报告。
上传时间: 2014-07-02
上传用户:trepb001
We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.
标签: represented integers group items
上传时间: 2016-01-17
上传用户:jeffery
红外解码的方法 NEC格式 upd6121 1、9Ms的高电平启动头,然后是4.5Ms的低电平,如果2.25Ms时就有高电平,是持续信号,不处理 2、然后以一个高电平和一个低电平为1Bit,高电平时间是0.5625Ms=562us, 高低电平时间比为1:1时是Bit1,比为1:3时是Bit0 3、Timer1中断执行100us采样周期,9Ms=90,4.5Ms=45,高电平=5,低电平最多15 4、共读入4Byte共24bit,第1、2Byte是CustomCode码和其反码,第3、4Byte是DataCode和其反码 5、CustomCode正确和DataCode效验正确的话,执行 6、红外接收器输出是反相的
上传时间: 2016-02-05
上传用户:啊飒飒大师的
用Gauss消元法、选列主元的Gauss消元法求线性方程组(1)的解,要求输出增广矩阵的消元变化过程。 用Gauss消元法、选列主元的Gauss消元法求线性方程组(1)的解,要求输出增广矩阵的消元变化过程 42x1+2x2+3x3=3 x1+7x2+7x3=1 -2x1+4x2+5x3=-7 算法思想:Gauss消元法是将线性方程组化为上三角形线性方程组,然后再用一个回代过程求这个上三角形线性方程组的解;选主元的Gauss消元法是在Gauss消元法上增加了选列主元的过程,选列主元是为了避免当akk 为零或绝对值充分小时使计算过程被迫终止或计算误差较大,选列主元是将akk、a(k+1)k 、…、ank 中绝对值最大的元素移到主对角线上,从而改进Gauss消元法性能
上传时间: 2016-02-06
上传用户:tyler
我设计的指标思路: 1、均线流:日均线5、10、30、65、250中线多头排列,而短线处于波浪底部(即二浪回调末端); 2、偏离率:股价偏离60日线10%以下;股价偏离250日线30%以下; 3、MACD指标连续10天以上处于底部状态; 4、同时符合1+2+3三个条件,说明该股属于中线庄股,锁定目标; 5、当MACD重新走强、股价出现放量上涨之日,就是三浪启动之时——果断买入,等待拉升!
上传时间: 2016-03-22
上传用户:qunquan
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
工具名称:星星点灯赢富360 功能:1、提供大盘赢富资金盘面的查询 2、提供个股赢富盘面的查询(待开发) [代理设置说明]如果代理服务器为空,则不用代理设置;否则强制代理起作用,因此,必须确保哥哥参数正确。 功能限制:分注册账号和公用账号 1、注册账号具有与服务器(可设定)同等的更新频度,以近乎实时的方式提供数据,目前盘面资金设定每5分钟提供一次,个股数据优先服务。可能会根据服务器的负荷调整更新频度。 2、公用账号1以不低于30分钟的频度提供盘面资金查询。每天提供总数100次的个股查询服务,提供给论坛会员使用。公用账号2每天提供2次盘面资金服务,已扩大论坛影响。
上传时间: 2016-08-09
上传用户:songyue1991