虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

A-Moving-Object-<b>database</b>-Model-Ba

  • 分数是两个整数的比

    分数是两个整数的比,通常表示为 (或b/a)的形式,其中b称为分子,a称为分母,分母不能为0。分数在计算机中以整数或浮点数(有限小数)的形式表示,大多数情况下都是近似表示,具有较大的误差,例如 ,在计算机中用整数表示为0,用浮点数表示为0.333333。本实例就是要设计一个Fraction (分数) 类类型,该类型的对象可以像基本类型数据一样进行运算,结果仍为分数,运算包括四则运算,关系运算,及求一元一次分式方程的解,输入输出要求按分数方式进行。

    标签: 分数 整数

    上传时间: 2016-02-18

    上传用户:zhoujunzhen

  • (1).问题描述:集装箱的装箱问题 给定一个集装箱

    (1).问题描述:集装箱的装箱问题 给定一个集装箱,其长为L,宽为W和高为H,现有一批圆柱形木材,每根木材的长均为L,但是半径不同,设第i根木材半径为ri。问如何装箱,使得集装箱的空间利用率最高? (2).程序设计要求: a. 设计一个贪心算法 b. 任给一个输入实例,能输出集装箱的空间利用率 c. 能用图形演示装箱的过程 演示: 输入要测试的文件名,如c17.txt,程序将给出结果,并用图形演示。

    标签: 集装箱

    上传时间: 2014-01-07

    上传用户:miaochun888

  • 编程题(15_01.c) 结构 struct student { long num char name[20] int score struct student *

    编程题(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

    标签: student struct score long

    上传时间: 2016-04-13

    上传用户:zxc23456789

  • 炸弹超人游戏c语言简板

    炸弹超人游戏c语言简板 ,两个人碗的,A控制WASD空格,B控制光标键和回车 命数,关的风格自己在文件头自己搞定;可以吃的道具由种分别加威力和雷数(最多8个)--简单的16色游戏。

    标签: c语言

    上传时间: 2016-04-27

    上传用户:lhw888

  • %radon transform clear all % N=800 n=1:N fs=200 t=n/fs x1=exp(j*2*pi*(5*t+0.5*5*t.^2

    %radon transform clear all % N=800 n=1:N fs=200 t=n/fs x1=exp(j*2*pi*(5*t+0.5*5*t.^2)) x2=exp(j*2*pi*(5*t+0.5*15*t.^2)) x=x1+x2 %N=length(x) % ambifunb(x ) %*****************************************RAT naf=ambifunb(x) htl(abs(naf)) % [wh,rho,theta]=htl(abs(naf)) colormap([0,0,0]) % xlabel( 极半径 ) % ylabel( 角度 ) %**************************************%找出峰值点的坐标,计算初始频率和调频斜率(正确) %找出峰值点的坐标 b=max(max(wh)) [u,a]=find(wh>=0.8*b)

    标签: transform radon clear fs

    上传时间: 2014-10-27

    上传用户:Yukiseop

  • 给定一个图

    给定一个图,设计一个程序,找出一条从某一顶点a到另一顶点b边数最少的一条路径。

    标签:

    上传时间: 2013-12-14

    上传用户:

  • 写一个对文本文件加密的程序和一个解密的程序。密码规则是:对于小写字母

    写一个对文本文件加密的程序和一个解密的程序。密码规则是:对于小写字母,a换成x,b换成y,c换成z,d换成a,e换成b,...;对于大写字母,A换成X,B换成Y,C换成Z,D换成A,E换成B,...;其他字符不变。

    标签: 程序 文件加密 密码 字母

    上传时间: 2016-08-16

    上传用户:jennyzai

  • (1)熟悉树的各种表示方法和各种遍历方式

    (1)熟悉树的各种表示方法和各种遍历方式,掌握有关算法的实现,了解树在计算机科学及其它工程技术中的应用。试设计一个程序,在计算机中构造该二叉树,并对它进行遍历。(2)给定一个图,设计一个程序,找出一条从某一顶点A到另一顶点B边数最少的一条路径。

    标签: 方式

    上传时间: 2013-12-24

    上传用户:稀世之宝039

  • For advanced geometry, most apps will prefer to load pre-authored meshes from a file. Fortunately,

    For advanced geometry, most apps will prefer to load pre-authored meshes from a file. Fortunately, when using meshes, D3DX does most of the work for this, parsing a geometry file and creating vertx buffers for us. This tutorial shows how to use a D3DXMESH object, including loading it from a file and rendering it. One thing D3DX does not handle for us is the materials and textures for a mesh, so note that we have to handle those manually.

    标签: pre-authored Fortunately advanced geometry

    上传时间: 2013-12-26

    上传用户:sssl

  • Whenever there is an application to write, breaking it up to small pieces is a great idea. The small

    Whenever there is an application to write, breaking it up to small pieces is a great idea. The smallest piece of any application would probably be a data object, or a simple Bean in Java. Java Beans are simple Java classes that have a distinctive look and behavior. Their simplest purpose is to contain data and they accomplish this by having properties. Each property is actually a data-member containing/referencing the actual data and a couple of methods, a getter method and a setter method. Thus, the simplest data-bean describing a person could be expressed as such:

    标签: small application Whenever breaking

    上传时间: 2016-11-07

    上传用户:lingzhichao