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

VOID

  • 1.功能 利用广义逆求解无约束条件下的优化问题(C语言) 2.参数说明 int m : 非线性方程组中方程个数 int n : 非线性方程组中未知数个数 double eps1 : 控制

    1.功能 利用广义逆求解无约束条件下的优化问题(C语言) 2.参数说明 int m : 非线性方程组中方程个数 int n : 非线性方程组中未知数个数 double eps1 : 控制最小二乘解的精度要求 double eps2 : 用于奇异值分解中的控制精度要求 double x[n] : 存放非线性方程组解的初始近似值X(0),要求各分量不全为0 int ka : Ka=max{m,n}+1 VOID (*f)() : 指向计算非线性方程组中各方程左端函数值的函数名(用户自编) VOID (*s)() : 指向计算雅可比矩阵的函数名 int ngin() : 函数返回一个标志值 3.文件说明 ngin.c函数文件 ngin0.c主函数文件

    标签: int double eps1 方程

    上传时间: 2013-12-23

    上传用户:大三三

  • 自定义一个简单的日期类DateType

    自定义一个简单的日期类DateType,它具有数据成员y、m、d,用来表示当前日期的年、月、日。而后设计该类欲实现(完成)的功能,进而设计出相应的类成员函数。 例如,下面给出的“雏形”可用来实现对天的增加,比较两个日期是否相等,以及对日期的输出等操作。请完成各类成员函数,并编制主函数,说明DateType类对象,对定义的各成员函数进行调用,以验证它们的正确性。 class DateType { //自定义的日期类DateType int y,m,d //数据成员,表示当前日期的年、月、日 public: DateType(int y0=1, int m0=1, int d0=1) //构造函数,设定年、月、日;并设置参数默认值 VOID incrementDay() //增加1天 bool equal(DateType dt2) //判断二日期是否相等 VOID printDate() //屏幕输出日期对象的有关数据(年、月、日) }

    标签: DateType 自定义

    上传时间: 2013-12-22

    上传用户:songyue1991

  • sd2003芯片资料及源码

    sd2003芯片资料及源码,C51下的,可以直接使用,不是厂方提供的测试程序, 相应子程序: extern VOID ini_SD2003(VOID) extern bit mend_scl_SD2003(VOID) extern bit start_bit_SD2003(VOID) extern VOID stop_bit_SD2003(VOID) extern VOID ack_SD2003(VOID) extern VOID no_ack_SD2003(VOID) extern VOID mast_ack_SD2003(VOID) extern VOID write_8bit_SD2003(UCHAR ch) extern UCHAR Read_8bit_SD2003(VOID) extern VOID write_8bit_SD2003_R(UCHAR ch) extern UCHAR Read_8bit_SD2003_R(VOID) extern bit Readblock_SD2003(UCHAR ucommand,UCHAR *p) extern bit Writeblock_SD2003(UCHAR ucommand,UCHAR *p)

    标签: 2003 sd 芯片资料 源码

    上传时间: 2015-09-14

    上传用户:zl5712176

  • 创建一棵二叉排序树

    创建一棵二叉排序树,并采用中序遍历和层次遍历法输出其顶点序列,主要实验内容如下: 1. 定义二叉排序树的结构BiTree; 2. 编制二叉排序树的插入算法:VOID Insert_SortTree (BiTree ST, ElemType x); 3. 编制中序遍历函数; 4. 在main()函数中完成二叉排序树的建立,以及中序遍历的输出。(二叉排序树的各个元素从键盘输入,并利用Insert_SortTree()函数进行插入建立); 5. 编制层次遍历函数,并在main()函数中完成层次遍历的输出。层次遍历法要利用“队列”来实现;为此需要定义一个队列结构(可以采用链队列,也可以采用循环顺序队列),并实现相关的队列函数。

    标签: 排序

    上传时间: 2013-12-25

    上传用户:kikye

  • 实现直接插入排序 要求:封装成一个函数

    实现直接插入排序 要求:封装成一个函数,形式如下:    VOID DirectInsertSort(bool bOrder, bool bPrintEveryStep, int * array) 其中,参数bOrder是布尔类型变量,true表示升序,false表示降序       bPrintEveryStep表示是否把每一步的排序结果打印出来,true表示打印,false表示不打印 array是待排序的数组

    标签: 排序 封装 函数

    上传时间: 2014-01-15

    上传用户:wsf950131

  • 哈夫曼树和哈夫曼编码: 从终端输入若干个字符及其对应的整数

    哈夫曼树和哈夫曼编码: 从终端输入若干个字符及其对应的整数,将整数作为结点的权值,建立哈夫曼树,然后对各字符进行哈夫曼编码。最后打印哈夫曼树和对应的哈夫曼编码。 设计要求: ⑴ 哈夫曼殊和哈夫曼编码的存储表示参考教材事例 ⑵ 在程序中构造四个子程序为 ① int createhtree(HTree *t) /*根据输入的字符及其权值建立哈夫曼树*/ ② VOID coding(HTree *t, char *code) /*对哈夫曼树进行编码*/ ③ VOID printhtree(HTree *t, int* path) /*中序打印树*/ ④ VOID printcode(HTree *t) /*输出个字符的哈夫曼编码*/

    标签: 字符 整数 编码

    上传时间: 2013-12-17

    上传用户:二驱蚊器

  • [问题描述] 将N个关键字去整数的记录进行整序

    [问题描述] 将N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前,要求使用最少的附加空间,且算法的时间复杂度为O(N) [输入] 待排序记录个数,各关键字的值。 [输出] 关键字从正负分开,正数在前 [存储结构] 待排序记录顺序存储。 [算法的基本思想] 快速排序算法每次任取一个记录的关键字为标准,将其余记录分为两组将,N个关键字去整数的记录进行整序, 以使所有关键字为非负数的记录排在关键字为负数的记录之前。 #include <iostream> using namespace std #define MAXNUM 100//设文件的最长可能长度 VOID sort(int* keys, const int len)//排序

    标签: 整数 记录

    上传时间: 2014-01-13

    上传用户:aig85

  • 本题的算法中涉及的三个函数: double bbp(int n,int k,int l) 其中n为十六进制位第n位

    本题的算法中涉及的三个函数: double bbp(int n,int k,int l) 其中n为十六进制位第n位,k取值范围为0到n+7,用来计算16nS1,16nS2,16nS3,16nS4小数部分的每一项。返回每一项的小数部分。 VOID pi(int m,int n,int p[]) 计算从n位开始的连续m位的十六进制数字。其中p为存储十六进制数字的数组。 VOID div(int p[]) VOID add(int a[],int b[]) 这两个函数都是为最后把十六进制数字转换为十进制数字服务的。 最后把1000个数字分别存储在整型数组r[]中,输出就是按顺序输出该数组。

    标签: int double bbp 算法

    上传时间: 2014-01-05

    上传用户:xcy122677

  • http://www.bc-cn.net/Article/kfyy/cyy/jc/200409/5_4.html float aver(float a[5]) { int i float a

    http://www.bc-cn.net/Article/kfyy/cyy/jc/200409/5_4.html float aver(float a[5]) { int i float av,s=a[0] for(i=1 i<5 i++) s=s+a[i] av=s/5 return av } VOID main() { float sco[5],av int i

    标签: float Article 200409 bc-cn

    上传时间: 2014-01-08

    上传用户:zsjzc

  • UC Library Extensions UnderC comes with a pocket implementation of the standard C++ libraries, wh

    UC Library Extensions UnderC comes with a pocket implementation of the standard C++ libraries, which is a reasonably faithful subset. This documentation describes those UnderC functions and classes which are not part of the C++ standard. UC Library Builtin functions: Most of these are standard C functions, but there are a few unique to the UnderC system which give you runtime access to the compiler. You may evaluate expressions, execute commands, compile code, etc. * Expands the text in expr using the UnderC preprocessor, putting the result into buff. VOID uc_macro_subst(const char* expr, char* buff, int buffsize) * Executes a UC #-command, like #l or #help. uc_cmd() expects the name of the command, _without_ the hash, e.g. uc_cmd("l fred.cpp") or uc_cmd("help"). VOID uc_cmd(const char* cmd) * Evaluates any C++ expression or statement will return non-zero if unsuccessful.

    标签: implementation Extensions libraries standard

    上传时间: 2013-12-14

    上传用户:leehom61