搜索资源列表
matlabmatrix
- 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 Writ
hyplas
- ************************************************************************ * * * * * THIS IS THE H Y P L A S 2.0 README FILE * * ----------------- * * * * HYPLAS is a finite element program for implicit small and large * * strain analisys of hyperelast
从数据文件records.txt中读取学生信息
- 从数据文件records.txt中读取学生信息,建立与源数据同序的学生链表并打印在屏幕上; 统计学生链表中身高达标人数(男女生的身高达标值由键盘输入),并打印结果; 对上述学生链表按学号进行排序,然后将一位学生的相关信息插入到已按学号排序的学生链表中后仍然保持学号的有序性,将结果链表打印在屏幕上; 对上述操作后的学生链表进行倒置,结果输出到数据文件result.txt中; 删除链表中身高为指定值的所有学生结点并打印; 将当前的学生链表拆分为男生链表和女生链表(没有
sy1
- 使用如下所谓的简单变量“数据平移”方法来求出Fibonacci数列的第n项(的具体项值)并显示在屏幕上(正整数n通过键盘输入):说明变量old1=1,old2=1,newItem;新的Fibonacci项newItem总是“距它最近”的前两项(old1与old2)的累加和。而后通过“old1=old2 old2=newItem ”进行所谓的“数据平移”。接着计算另一个新的Fibonacci项newItem,依次循环,直到求出数列的第n项时为止。-Use the following so-call
09
- 本程序主要实现的是:一个打字练习的小游戏。运行程序之后,屏幕是会随机出现一个字符,然后用户根据这个字符敲击键盘上的相应字母,如果二者吻合(称为命中)则分数增1,否则分数减1。此外,如果超过了一定的时间用户还未按键,则分数也减1。-The main achievement of this process is: a typing practice game. After running the program, the screen will be a random character, and
employee
- 一个程序,确定由4个并联的子电路组成的电路的总电阻。子电路由两个串联或并联的电阻器组成。由键盘输入,向屏幕输出结果。写一个电路的基类和两个派生类(分别处理串联和并联),使用虚基类(抽象基类)和多态。对所有的子电路使用一个循环计算总的电阻。-A procedure, make sure the child by four parallel circuit circuit of total resistance. A sub circuit consists of two series or par
BiTNode
- 1.建立二叉链表。 要求:按先序遍历规则,从键盘连续输入二叉树的先序序列,若无孩子结点,则用*代替,以示空指针的位置。 2.用先序、后序遍历递归算法对前面建立好的二叉链表树进行遍历。要求分别显示遍历后的结点序列。 3.调用计算二叉树的叶子结点算法,统计上述二叉链表树的叶子结点总数,从屏幕显示二叉链表树的叶子结点总数。 4.设计一个算法,求二叉树中值为x的结点的所在层的层号。 -1. The establishment of binary list. Requirement
binaryTree
- 本程序用二叉树类实现了从键盘输入二叉树的两种遍历结果,在内存中建立二叉链表,根据遍历结果恢复该二叉树,并在屏幕上显示该二叉树。整个程序采用多文件,一个头文件,一个函数实现文件,以及主函数所在文件。-The program uses a binary tree class implements a binary tree from two keyboard traversal results in memory to create the binary list, according to res
ex_2
- 1.编写生成栈的函数,栈的元素从键盘输入 2.编写在栈中压入一个元素的函数 3.编写在栈中弹出一个元素的函数 4.编写主函数,调用以上各函数,以便能观察出各函数的屏幕输出。 -1. Preparation of the function generating the stack, the stack of elements from the keyboard 2. Preparation of pressure on the stack into an element of th
equation
- 解线性方程组的控制台程序,程序里有一个向量类,一个矩阵类和一个方程类;可以用键盘输入数据,也可从文本文件中读入数据,输出结果到屏幕和文本文件。-Linear Equations of the console program, the program there is a vector class, a matrix equation of class and a class can use the keyboard input data can also be read from a text
31
- 二叉排序树的构建,采用llink-rlink方式存储二叉排序树,编写能够通过键盘输入建立二叉排序树,并在建立完立即在屏幕显示中序遍历结果的程序。-Construction of binary sort tree, using llink-rlink stored binary sort tree, the preparation can be established through the keyboard input binary sort tree, and immediately in t
1.3
- 定义一个结构体数组,存放10个学生的学号,姓名,三门课的成绩 从键盘输入10个学生的以上内容,存入文件stud.txt,关闭文件 打开stud.txt文件,将数据读出,查看是否正确写入,关闭文件。 打开文件stud.txt文件,读出数据,将10个学生按照平均分数从高到低进行排序, 分别将结果输出到屏幕上和另一文件studsort.txt中。-Define an array of structures, storage of 10 students to learn numbers
AA
- 统计、求和与*排序 [目的] 熟悉循环和子程序调用的编程方法 [设计要求] 1. 从键盘随机输入十个数据,统计其中负数的个数,并在屏幕上显示出来; 2. 求出这十个数的总和, 存入数据段SUM 单元,并在屏幕上显示出来; 3. * 将这些数从小到大排序,存入 ORDER 为首址的存储区域,并在屏幕上显示出来。 4.** 编一跳转表,按键1,2,3,分别执行上述三种操作。 -Statistics, Sum* Sort [purpose] loop and subrout
xiangxingbiao
- 数据结构课程线性表编程实验,从键盘输入len个元素并存放到线性链表L中,在屏幕上显示线性链表L中的所有元素-Table of data structures course linear programming experiments in L from the keyboard input len elements co-exist on the linear list, displayed on the screen all the elements of the linear list L
datastructure
- 实现一个内存分配模拟系统,分配的原则参见“伙伴系统”。 要点:使用链表保存各块内存信息,同一个链表中保存的各块大小相同。 链表中的每个结点形式如下: 从键盘输入欲分配的块的大小,系统给出分配结果,并在屏幕上显示出来(图示方式或文本方式)。 -A memory allocation simulation system, the principle of allocation see the " buddy system" . Po
stepmotor
- 这是个用矩阵键盘控制步进电机圈数和转速的程序,参数设定在触摸屏上显示-This is a matrix keyboard to control the stepper motor number of turns and speed program parameter settings on the touch screen display
cSharpyingwendanciqiufushu
- 英文单词求复数问题 编写一个程序,可以将英语规则名词(不考虑不满足以下规则的英语单词)由单数变成复数。已知规则如下: a)以辅音字母y结尾,则将y改成i,再加es; b)以s,x,ch,sh结尾,则加es; c)以元音o结尾,则加es; d)其他情况直接加s。 要求用键盘输入英语规则名词,屏幕输出该名词的复数形式。 样例输入: box 样例输出: Boxes -English words in complex problems
binary_tree
- 从键盘输入二叉树的两种遍历结果,在内存中建立二叉链表,根据遍历结果恢复该二叉树,并在屏幕上显示该二叉树。-Binary list results from two keyboard input binary tree traversal, memory, and restore the binary tree traversal results, and the binary tree is displayed on the screen.
erchashu5876
- 非递归中序遍历二叉树:要求从键盘输入二叉树各结点的值,并使用二叉链表来存储二叉树;使用非递归算法遍历二叉树,在屏幕上打印出二叉树中序遍历序列。-Non-recursive traversal of binary tree: the input binary tree node value from the keyboard and use the binary tree to store binary tree non-recursive algorithm for binary tree t
keyboard
- 键盘显示,可以将事先输入的字体显示在屏幕上-Input keyboard fonts can be displayed on the screen