自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 二叉树类BinTree的声明

#pragma once #include "stdafx.h" #include "BinTreeNode.h" #include "Stack.h" //二叉树类BinTree的声明 template <typename T> class BinTree { private: //指向根结点 BinTreeNode<T>* root; //输入stop时,终止结点的输入

2017-03-27 00:25:54 1917

原创 链表表示的 一元多项式,无参构造器,有参构造器,相加,遍历

//链表表示的 一元多项式,无参构造器,有参构造器,相加,遍历 #include <stdio.h> #include <stdlib.h> #define OK 1 #define TRUE 1 #define ERROR -1 #define FALSE -1 #define OVERFLOW -2 typedef int Status; #define LEN sizeof(Node) #de

2017-03-24 15:44:45 349

原创 级数求和 C# lanmda写法

#pragma once #include "stdafx.h" #define MAXK 1e7 //class AlgoMath { //public: // AlgoMath() {} // virtual ~AlgoMath() {} //};//级数求和 //伪 lanmda 写法 //double Series=(double base, int limit, int Consta

2017-03-22 23:18:10 1091

原创 最大子列和 动态规划 在线处理

//最大子列和 动态规划 在线处理 //动态规划 //算法4 在线处理,T(N)=O(N) //在线的意思是指每输入一个数据就进行即时处理,在任何一个地方中止输入,算法都能正确给出当前的解 int MaxSubsequSum4(int A[], int length) { int ThisSum, MaxSum; int i; ThisSum = MaxSum = 0;

2017-03-22 23:13:34 899

原创 用vector实现矩阵, vector传参必须用模板泛型

#pragma once #include "stdafx.h"//用vector实现矩阵, vector传参必须用模板泛型 template <typename Object> class Matrix { private: //2维的矩阵,2维的vector数组,vector就是一种动态数组 vector<vector<Object>> array; public: //

2017-03-22 23:10:43 843

原创 用 BitArray 来编写埃拉托斯特尼筛法

using System; using System.Collections; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Thread

2017-03-16 21:48:54 566

原创 BitArray 内置是逆序存储, 因此要自行实现正序输出

using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace BitArrayCh.Algo { //BitArray 内置是逆序存储, 因此要自行实现正

2017-03-16 17:35:17 580

原创 位运算,位移,窗体

//BitMove.csusing System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; usi

2017-03-16 16:25:58 315

原创 按位运算,窗体程序,And,Or,Xor

//BitOperations.Designer.csprivate System.Windows.Forms.Button btnAnd; private System.Windows.Forms.Button btnOr; private System.Windows.Forms.Button btnXor; private System.Windows.Forms.Label label_In

2017-03-16 14:51:01 832

原创 基数排序

using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace StackQueue.Main { //基数排序 public class Radi

2017-03-15 21:23:09 256

原创 进程优先队列

using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks;namespace StackQueue.algo { //进程优先队列 public struct p

2017-03-15 21:14:09 284

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除