资源列表
fenjieyinshu
- 题目:将一个正整数分解质因数。例如:输入90,打印出90=2*3*3*5。 程序分析:对n进行分解质因数,应先找到一个最小的质数k,然后按下述步骤完成: (1)如果这个质数恰等于n,则说明分解质因数的过程已经结束,打印出即可。 (2)如果n<>k,但n能被k整除,则应打印出k的值,并用n除以k的商,作为新的正整数你n, 重复执行第一步。 (3)如果n不能被k整除,则用k+1作为k的值,重复执行第一步。
C++开发图形计算程序
- 编写C++程序完成以下功能: (1) 定义一个Point类,其属性包括点的坐标,提供计算两点之间距离的方法; (2) 定义一个矩形类,其属性包括左上角和右下角两个点,提供计算面积的方法; (3) 创建一个矩形对象,提示用户输入矩形左上角和右下角的坐标; (4) 观察矩形对象以及Point类成员的构造函数与析构函数的调用; (5) 计算其面积,并输出。 -Write C++ program performs the following functions: (1
landing
- 进度条,可以写一个登陆等待~ 通过它可以提高代码的可读性!-Progress bar
Huffman_code
- 经典的Huffman编码,给定概率向量,输出相应Huffman编码-Classic Huffman encoding, given the probability vector, the output corresponding Huffman coding
sort
- 用非递归的算法对一组 数组进行排序,算法比较简单-Non-recursive algorithm to sort a set of array
bbvb
- 彩色满天星加上时间显示(混合运用时间轴)-Color stars with time display (mixed use timeline)
1
- 问题描述:给定一个自然数n,由n开始可以依次产生半数集set(n)中的数如下: (1) n∈set(n) (2)在n的左边加上一个自然数,但该自然数不能超过最近添加的数的一半; (3)按此规则进行处理,直到不能再添加自然数为止。 ★算法设计:对于给定的自然数n,技术半数集set(n)中的元素个数。 ★输入的数据由文件名为input.txt的文本文件提供。每个文件只有一行,给出整数n(0<n<1000)。 ★结果输出: 将计算结果输出到文件output.txt。
length-of-word-histogranm
- 单词长度直方图。通过检索英文文本中的内容,给出单词的长度,并给出直方图-Word length histogram. English text by searching the contents of the given word length, and gives the histogram
KNUCKEL-JOINT
- C++ Program for Cad Design of Knuckle Joint
sixuanyiduoluxuanzeqi_verilog
- 四选一多路选择器的verilog实现。VHDL,单片机开发程序,数字逻辑与处理器基础实验,你懂d。-4 election more than one way selector verilog implementation. VHDL, MCU development program, the digital logic and processor basic experiment, you know d.
piston01
- 该程序可用于模拟活塞机的仿真,提高仿真效率,降低计算成本。-This code can be used to simulate a piston engine s movement. it is very efficent.
main
- This a main.c and this is a example code for Digita to Analog converter, have fun with this code and sorry for my bad english-This is a main.c and this is a example code for Digita to Analog converter, have fun with this code and sorry for my bad eng
