- 博客(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 1650
原创 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 1864
原创 线性单链表的操作
#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 746
原创 链式栈的类定义
#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 1541
原创 表达式求值
#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 389
原创 二叉树类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 -2typedef 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 1090
原创 最大子列和 动态规划 在线处理
//最大子列和 动态规划 在线处理//动态规划//算法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 579
原创 位运算,位移,窗体
//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
原创 双向循环链表 初始化 插入 删除
#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 inttypedef int ElemTypetype
2017-02-24 22:40:03 727
原创 单向循环链表 初始化 合并
#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 inttypedef int ElemTypetype
2017-02-24 22:38:48 934
原创 静态链表 初始化 定位 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 inttypedef int ElemTypetypedef int Status
2017-02-24 22:31:46 849
原创 单链表 初始化 创建 头插法 尾插法 插入 删除 查找 合并 长度
#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 inttypedef int ElemTypetype
2017-02-24 22:29:25 2319
原创 顺序表 初始化 插入 删除 查找 合并 交换 判断为空 求长度
#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 inttypedef int ElemTypetypedef int Status
2017-02-24 22:27:16 858
原创 静态链表 初始化 插入
#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 916
原创 线性单链表 初始化 插入 取出 头插法 合并升序排列
#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 449
原创 合并顺序表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 1696
原创 线性表 初始化 插入 删除 的操作
#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 ElemTypetypedef int Statusconst LIST_INI
2017-02-21 23:07:09 3990
原创 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 379
原创 腾讯微博项目
<!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 568
原创 调用自定义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 731
原创 封装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 295
原创 自建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 4202
原创 参数化登陆防止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 444
原创 封装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 1455
原创 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 432
原创 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 3454
原创 对应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 834
原创 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 417
原创 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 3840
原创 遍历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 877
原创 通过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 1270
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人