-
实现二分法求解方程。编写并使用以下函数:
double SolveRoot(double(*pf)(double x),double a,double b,...
实现二分法求解方程。编写并使用以下函数:
double SolveRoot(double(*pf)(double x),double a,double b,int n)
这里,pf指向一个函数f,f用来定义要求解的方程f(x)=0,a和b是未知解x的上下界(即a
- 2022-05-10 10:45:06下载
- 积分:1
-
在线投票系统,本系统采用myeclipse开发工具,结合sqlserver2000数据库。完成一个在线投票系统...
在线投票系统,本系统采用myeclipse开发工具,结合sqlserver2000数据库。完成一个在线投票系统-Online voting system, this system development tools myeclipse, combined with sqlserver2000 database. Completion of an online voting system
- 2022-09-16 01:30:03下载
- 积分:1
-
约瑟夫问题有原始的约瑟夫和发展了的约瑟夫两种。 原始的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,他有一条荒唐的法律,将犯人站成一个圆圈,从第S个人开始数起...
约瑟夫问题有原始的约瑟夫和发展了的约瑟夫两种。 原始的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,他有一条荒唐的法律,将犯人站成一个圆圈,从第S个人开始数起,每数到第D个犯人,就拉出来处决,然后再数D个,数到的人再处决―――直到剩下的最后一个可赦免。 发展的约瑟夫的描述: 古代某法官要判决N个犯人的死刑,但这N个人每人持有一个密码,他有一条荒唐的法律,将犯人站成一个圆圈,法官先给出一个密码M,从第S个人开始数起,每数到第M个犯人,就拉出来处决,再根据这个人所持有的密码F,然后再数F个,数到的人再处决,以此类推―――直到剩下的最后一个可赦免。-Joseph problems have original development of the Joseph and Joseph two. The original Joseph Description : Ancient a judge to sentence N inmates of the death penalty, he is a ridiculous law, prisoners station into a circle, from S began a few individuals, every few months to D prisoners, pull out executions, then D, the number of people to be re-executed--- until the last one left to be pardoned. The development of the Joseph Description : Ancient a judge to sentence N inmates of the death penalty, but each individual N holders a password, he is a ridiculous law, prisoners station into a circle, the judges first gave a password M, S individuals from the beginning of several, each of the first few inmates M , pull hi
- 2022-03-11 16:54:39下载
- 积分:1
-
简单的演示,N的大小可以改变的,而且这个程序的速度还可以,
比以前我用递归写的那个快多了.如果N改得太大输出会有问题,
因为我用到gotoxy的,这个程...
简单的演示,N的大小可以改变的,而且这个程序的速度还可以,
比以前我用递归写的那个快多了.如果N改得太大输出会有问题,
因为我用到gotoxy的,这个程序主要是练一个算法-simple demonstration, N size can be changed, but the rate of this procedure can also, than in the past I used to write a recursive that quicker. If N is too big change in exports, gotoxy because I used, the process is mainly a training algorithm
- 2022-03-13 09:29:46下载
- 积分:1
-
数据结构
Balance
数据结构
Balance-Bi-Tree 数据结构
Balance-Bi-Tr-data structure Balance- Bi-Tree data structure Balance- Bi-Tr ee data structure Balance- Bi-Tree data structure Balance- Bi-Tr
- 2023-04-20 07:45:03下载
- 积分:1
-
骑士,在n×n箱在国际象棋的棋盘上,马(骑士)的影响。
骑士遍历问题,在一个n*n个方格的国际象棋棋盘上,马(骑士)从任意指定方格出发,按照横1 步竖2 步,或横2 步竖1步的跳马规则,走遍棋盘的每一个格子,且每个格子只走1次。-Knight, in an n* n box at the international chess board, Ma (Knight) from the arbitrary designation box and, in accordance with a further horizontal two-step vertical, horizontal or a vertical two-step further vaulting horse rules traveled a checkerboard lattice of each and every one lattice just take time.
- 2022-03-11 12:29:26下载
- 积分:1
-
WinMain 函数的初级代码
资源描述本代码比较适合初学者,刚接触过C++语言的童鞋,对代码不是怎么懂,可以参考学习。
- 2022-02-04 14:15:25下载
- 积分:1
-
与清华大学版的《数据结构》匹配二叉树的实现:BITREE1.CPP:为主程序,其中实现了递归算法以及非递归算法的前序遍历,中序遍历,后序遍历。TSTACK1.H...
与清华大学版的《数据结构》匹配二叉树的实现:BITREE1.CPP:为主程序,其中实现了递归算法以及非递归算法的前序遍历,中序遍历,后序遍历。TSTACK1.H: 为头文件,其中定义了一些常量的值,其中也包括了书中第三章的栈的实现,只需要将注解符去掉即可。运行环境为:VC++6 或 TC3-and Tsinghua University version of the "data structure" matching the achievement of a binary tree : BITREE1.CPP : mainly procedures, which achieved a recursive and non- recursive algorithm of algorithms preorder, preorder, after preorder. TSTACK1.H : for the first document, which defines a number of the value of a constant, which also include a third chapter of the book stack the realization simply have the website notes can be removed. Operating environment : VC 6 or TC3
- 2023-08-23 23:30:03下载
- 积分:1
-
一个焦化厂的电子称过秤软件,小巧实用,有需要修改的地方,不过已经能够胜任基本工作了。...
一个焦化厂的电子称过秤软件,小巧实用,有需要修改的地方,不过已经能够胜任基本工作了。-A coking plant, said electronic weighing software, compact and practical, there is need to modify the areas, but the basic work has been capable of.
- 2023-06-19 05:35:04下载
- 积分:1
-
如何将ABCDEFG按照指定的顺序,创建二叉树,
如何将ABCDEFG按照指定的顺序,创建二叉树,-How to ABCDEFG in accordance with the order specified to create binary tree,
- 2022-04-27 05:03:53下载
- 积分:1