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

2.<b>11</b>

  • 题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示

    题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。 1.程序分析:(a>b)?a:b这是条件运算符的基本例子。

    标签: gt 90 运算符 嵌套

    上传时间: 2015-01-08

    上传用户:lifangyuan12

  • Finds the polynomial p10 of degree less than or equal to 10 that interpolates cos x on the interval

    Finds the polynomial p10 of degree less than or equal to 10 that interpolates cos x on the interval [0, PI/2] at 11 equally spaced points. Study the error betwee between the function and the polynomial at 41 equally spaced points over the same interval. Repeat the latter but use your 11 points to be Chebyshevs.

    标签: interpolates polynomial the interval

    上传时间: 2015-04-06

    上传用户:hakim

  • The government of a small but important country has decided that the alphabet needs to be streamline

    The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition

    标签: government streamline important alphabet

    上传时间: 2015-06-09

    上传用户:weixiao99

  • 上下文无关文法(Context-Free Grammar, CFG)是一个4元组G=(V, T, S, P)

    上下文无关文法(Context-Free Grammar, CFG)是一个4元组G=(V, T, S, P),其中,V和T是不相交的有限集,S∈V,P是一组有限的产生式规则集,形如A→α,其中A∈V,且α∈(V∪T)*。V的元素称为非终结符,T的元素称为终结符,S是一个特殊的非终结符,称为文法开始符。 设G=(V, T, S, P)是一个CFG,则G产生的语言是所有可由G产生的字符串组成的集合,即L(G)={x∈T* | Sx}。一个语言L是上下文无关语言(Context-Free Language, CFL),当且仅当存在一个CFG G,使得L=L(G)。 *⇒ 例如,设文法G:S→AB A→aA|a B→bB|b 则L(G)={a^nb^m | n,m>=1} 其中非终结符都是大写字母,开始符都是S,终结符都是小写字母。

    标签: Context-Free Grammar CFG

    上传时间: 2013-12-10

    上传用户:gaojiao1999

  • HHARM2410: 1. 从ftp://ftp.arm.linux.org.uk上下载linux内核

    HHARM2410: 1. 从ftp://ftp.arm.linux.org.uk上下载linux内核,由于项目原因,先后跑了2.6.11,2.6.13和2.6.15,试了一下ftp.kernel.org上下载的2.6.16,没跑起来,打住。 2. 编辑linux-2.6.15/Makefile, ARCH ?= $(SUBARCH) CROSS_COMPILE?= 改为 ARCH ?= arm CROSS_COMPILE?= arm-unknown-linux-gnu- 我用的编译器是4.0.1版本的,一般的3.x的应该都没问题

    标签: linux ftp HHARM 2410

    上传时间: 2014-09-03

    上传用户:lo25643

  • We have a group of N items (represented by integers from 1 to N), and we know that there is some tot

    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

  • The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical)

    The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).

    标签: converts Toolbox complex logical

    上传时间: 2016-02-12

    上传用户:a673761058

  • 使用须知 1. 文件夹 两个文件夹:Mbook和Mfiles。 Mbook文件夹:存放可以用于教学或自学的Mbook形式的文档。 MFiles文件夹:存放所有例题的M文件

    使用须知 1. 文件夹 两个文件夹:Mbook和Mfiles。 Mbook文件夹:存放可以用于教学或自学的Mbook形式的文档。 MFiles文件夹:存放所有例题的M文件,保存的文件名为“Ex+章+序号.m”、“Ex+章+序号.fig”、“Ex+章+序号.mdl”或“Ex+章+序号.doc”。 2. 使用前的准备 (1)软件需要安装Office2000 和MATLAB6.5。 (2) 将文件夹Mbook和Mfiles的内容拷贝到用于教学的计算机的硬盘上。 (3)在MATLAB中将“Mfiles”文件夹添加在搜索路径中 添加搜索路径的步骤为: 在MATLAB界面选择菜单“File”→“Set Path”命令,在打开的设置路径对话框中通过“Add Folder…”或“Add with Subfolders…”按钮打开浏览文件夹窗口来添加搜索目录。 (3)要运行8.1小节的MEX和EXE文件,则需要有与MATLAB6.5适配的Borland C/C++或MicroSoft Visual C++或Watcom C/C++(详见11.2和11.3节)。 (4)要运行8.4小节Mbook文件夹的文件,则需要安装Notebook。

    标签: Mbook MFiles Mfiles 文档

    上传时间: 2016-05-20

    上传用户:cx111111

  • 在进行嵌入式Linux系统开发之前

    在进行嵌入式Linux系统开发之前,首先要建立一个ARM-Linux交叉编译环境,这就像在Windows下安装各类嵌入式开发的编译器一样(如Keil uvision2 , IAR-EWARM , ICC-AVR , ADS1.2 ,MPLAB7.11等 )。这也是一套由编译器、链接器和libc库等组成的开发环境。

    标签: Linux 嵌入式 系统开发

    上传时间: 2016-07-30

    上传用户:jkhjkh1982

  • probe方式的1341驱动

    probe方式的1341驱动,在2.6.11内核测试

    标签: probe 1341 方式 驱动

    上传时间: 2013-12-25

    上传用户:franktu