自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 php34-2-2添加商品分类的页面的无限极分类的总结

php34-2-2添加商品分类的页面的无限极分类的总结添加商品分类的页面cat_add.html原本是从ecshop里面复制过来, $cat是通过继承baseModel的catModel的getALLList(select from *)里面过来的。 select 选项改了一下 加进去了<?php foreach($cats as $cat):?> <option value = "<?php ec

2017-05-08 23:47:33 1722

原创 PHP的ECSHOP商城的改造成MVC添加商品功能总结

PHP的ECSHOP商城的改造成MVC添加商品功能总结 原始的ECSHOP商城不是MVC的架构,改造成MVC架构. admin后台 Platform =back,登录页面进去是index.php,里面是一个框架集frameset,上面是top,html, 左边是menu.html,滚动条drag.html,右边是main.html,都放在back/view下面, menu.html里

2017-05-05 10:27:44 1957

原创 线性单链表的操作

#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR 0 #define TRUE 1 #define FALSE 0 #define INFEASIBLE -1 #define OVERFLOW -2 /* #define ElemType int #define Status int */ typedef int E

2017-04-01 16:25:43 832

原创 链式栈的类定义

#pragma once #include "stdafx.h" #include "StackNode.h"//LinkStack,链式栈的类定义 template <typename T> class Stack { private: StackNode<T>* top; //cur ptr // 7个方法 public: //Construct Function()

2017-04-01 16:21:42 1603

原创 表达式求值

#pragma once #include "stdafx.h" #include "Stack.h" //方法的声明实现的 分离写法 容易 报错,IDE还找不到错误的地方//表达式求值 class Calculator { private: //Calculator's stack,运算存储区 Stack<double> s; //7个方法 public: //建立

2017-04-01 16:19:37 441

原创 二叉树类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 1975

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

//链表表示的 一元多项式,无参构造器,有参构造器,相加,遍历 #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 402

原创 级数求和 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 1163

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

//最大子列和 动态规划 在线处理 //动态规划 //算法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 990

原创 用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 892

原创 用 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 613

原创 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 629

原创 位运算,位移,窗体

//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 361

原创 按位运算,窗体程序,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 893

原创 基数排序

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 294

原创 进程优先队列

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 331

原创 双向循环链表 初始化 插入 删除

#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR -1 #define TRUE 1 #define FALSE -1 #define NULL 0 #define OVERFLOW -2 #define ElemType int #define Status int typedef int ElemType type

2017-02-24 22:40:03 777

原创 单向循环链表 初始化 合并

#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR -1 #define TRUE 1 #define FALSE -1 #define NULL 0 #define OVERFLOW -2 #define ElemType int #define Status int typedef int ElemType type

2017-02-24 22:38:48 985

原创 静态链表 初始化 定位 Malloc Free 插入 删除

#include <stdio.h> #include <stdlib.h> #define OK 1 #define TRUE 1 #define ERROR -1 #define FALSE -1 #define OVERFLOW -2 #define ElemType int #define Status int typedef int ElemType typedef int Status

2017-02-24 22:31:46 923

原创 单链表 初始化 创建 头插法 尾插法 插入 删除 查找 合并 长度

#include <stdio.h> #include <stdlib.h> #define OK 1 #define ERROR -1 #define TRUE 1 #define FALSE -1 #define NULL 0 #define OVERFLOW -2 #define ElemType int #define Status int typedef int ElemType type

2017-02-24 22:29:25 2410

原创 顺序表 初始化 插入 删除 查找 合并 交换 判断为空 求长度

#include <stdio.h> #include <stdlib.h> #define OK 1 #define TRUE 1 #define ERROR -1 #define FALSE -1 #define OVERFLOW -2 #define ElemType int #define Status int typedef int ElemType typedef int Status

2017-02-24 22:27:16 912

原创 静态链表 初始化 插入

#include <stdio.h> #include <stdlib.h>#define OK 1 #define TRUE 1 #define ERROR -1 #define FALSE -1 #define OVERFLOW -2 #define ElemType int #define Status int //线性单链表 初始化 插入 取出 头插法 合并升序排列 //----------

2017-02-23 00:17:08 980

原创 线性单链表 初始化 插入 取出 头插法 合并升序排列

#include <stdio.h> #include <stdlib.h>#define OK 1 #define TRUE 1 #define ERROR -1 #define FALSE -1 #define OVERFLOW -2 #define ElemType int #define Status int //-------------------------------线性单链表 ty

2017-02-22 18:34:05 495

原创 合并顺序表A和B,并且升序排序 到&Lc

void union(List &La,List Lb){ //线性表 求并集 //求并集 //不存在的元素插入到La La_len = ListLength(La); Lb_len = ListLength(Lb); for(i=1;I<=Lb_len;i++){ GetElem(Lb,i,e); if(!LocateElem

2017-02-22 12:25:24 1752

原创 线性表 初始化 插入 删除 的操作

#include <stdio.h> #include <stdlib.h>#define LEN sizeof(ElemType)#define OK 1 #define TRUE 1 #define ERROR -1 #define FALSE -1 #define OVERFLOW -2typedef int ElemType typedef int Status const LIST_INI

2017-02-21 23:07:09 4061

原创 CaterUI CRUD Bll语句放在IF里面执行,然后判断bool

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using S

2016-12-15 13:59:37 414

原创 SqliteHelper

Helper

2016-12-09 10:40:22 852

原创 腾讯微博项目

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>腾讯微博</title>

2016-12-05 23:31:42 636

原创 调用自定义SQLHelper示例

using System; using System.Collections.Generic; using System.Data.SqlClient; using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks;namespace _02SQLHelperC { class Prog

2016-11-14 14:17:45 795

原创 封装SQLHelper

using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Data.SqlClient; using System.Linq; using System.Text; using System.Threading.Tasks;namespace

2016-11-14 13:55:09 339

原创 自建List<>绑定ComboBox下拉框实现省市联动

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data

2016-11-12 21:59:35 4283

原创 参数化登陆防止SQL注入攻击

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data

2016-11-12 20:21:34 493

原创 封装SQL访问方法

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; using System.Data.SqlClient; namespace _04封装SQL访问方法 { public class SqlHelper {

2016-11-12 20:17:55 1494

原创 TXT导入数据到SQL

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; using System.IO; namespace _03导入数据 { class Program { static void Main(

2016-11-12 14:59:39 476

原创 SQL导出数据到TXT

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Data.SqlClient; using System.IO; namespace _02导出数据 { class Program { static void Main(

2016-11-12 14:56:38 3563

原创 对应SQL数据库 关系转对象,表名-类名 ,列名-属性, DeskInfo餐桌类

using System; using System.Collections.Generic; using System.Linq; using System.Text;namespace _03大项目 { public class DeskInfo { //DeskId, DeskName, DeskNamePinYin, DeskDelFlag, DeskNum

2016-11-12 12:25:35 882

原创 SQL代码-创建DeskInfo表

create table DeskInfo ( DeskId int primary key not null identity (1,1), DeskName varchar(20) , DeskNamePinYin varchar(20), DeskDelFlag int, DeskNum int ) select DeskId,DeskName,DeskNamePinYin,DeskNum

2016-11-12 12:20:10 478

原创 DataGridView连接Sql数据库 功能 查询 添加 删除 修改

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data

2016-11-11 23:23:09 3914

原创 遍历XML文件添加到TreeView递归调用

using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Wi

2016-11-02 12:08:16 1115

原创 通过WebClient类来发起请求并下载html 抓取邮箱 图片

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Net; using System.Text.RegularExpressions; using System.IO;namespace 通过WebClient类来发起请求并下载html 抓取邮箱 图片

2016-11-01 22:48:09 1327

空空如也

空空如也

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

TA关注的人

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