C++
钻石般的希望
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
分而治之:实现数组排序
#include <iostream> using namespace std; template <class T> class DivideAndRule{ public: void MergeSort(T *a,int low,int high) { if(low>=high) return ; int mid=(low+high)/2; MergeSort(a,low,mid); ...原创 2021-01-15 19:37:21 · 235 阅读 · 1 评论 -
(基于定理:若函数连续,两个函数值异号,则必定存在一个X,f(x)=0)二分法求函数的根测试
// 二分法.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<string> using namespace std; void function_formula() { string s = "f(x)=X2+2X-1"; cout<< s<<endl; } double function_answer(double x) { retu...原创 2020-06-13 09:32:15 · 496 阅读 · 0 评论 -
C++层次分析法一致性检验
// ConsoleApplication3.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include<iostream> #include<math.h> #include<vector> using namespace std; int main() { cout << "请输入行或列...原创 2019-04-18 10:40:12 · 1804 阅读 · 0 评论
分享