摘要: php34-2-2添加商品分类的页面的无限极分类的总结 添加商品分类的页面cat_add.html原本是从ecshop里面复制过来, $cat是通过继承baseModel的catModel的getALLList(select from *)里面过来的。 select 选项改了一下 加进去了 "> 在我们的基础模型中,定义了几个自动方法,包括自动插入、更新和删除。 这个add的view调用的... 阅读全文
posted @ 2017-05-08 23:48 影落明湖 阅读(1064) 评论(0) 推荐(0) 编辑
摘要: PHP的ECSHOP商城的改造成MVC添加商品功能总结 原始的ECSHOP商城不是MVC的架构,改造成MVC架构. admin后台 Platform =back,登录页面进去是index.php,里面是一个框架集frameset,上面是top,html, 左边是menu.html,滚动条drag.html,右边是main.html,都放在back/view下面, menu.htm... 阅读全文
posted @ 2017-05-05 10:27 影落明湖 阅读(1002) 评论(0) 推荐(0) 编辑
摘要: #include #include #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 ElemType; typedef ... 阅读全文
posted @ 2017-04-01 16:25 影落明湖 阅读(294) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include "stdafx.h" #include "Stack.h" //方法的声明实现的 分离写法 容易 报错,IDE还找不到错误的地方 //表达式求值 class Calculator { private: //Calculator's stack,运算存储区 Stack s; //7个方法 public: //建立一个空计算器栈 Calcula... 阅读全文
posted @ 2017-04-01 16:21 影落明湖 阅读(157) 评论(0) 推荐(0) 编辑
摘要: Stack.h 阅读全文
posted @ 2017-04-01 16:20 影落明湖 阅读(498) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include "stdafx.h" #include "BinTreeNode.h" #include "Stack.h" //二叉树类BinTree的声明 template class BinTree { private: //指向根结点 BinTreeNode* root; //输入stop时,终止结点的输入 T stop; ... 阅读全文
posted @ 2017-03-27 00:26 影落明湖 阅读(2368) 评论(0) 推荐(0) 编辑
摘要: //链表表示的 一元多项式,无参构造器,有参构造器,相加,遍历#include #include #define OK 1 #define TRUE 1 #define ERROR -1 #define FALSE -1 #define OVERFLOW -2 typedef int Status; #define LEN sizeof(Node) #define MLC (Node*)ma... 阅读全文
posted @ 2017-03-24 15:45 影落明湖 阅读(294) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include "stdafx.h" #define MAXK 1e7 //class AlgoMath { //public: // AlgoMath() {} // virtual ~AlgoMath() {} //}; //级数求和 //伪 lanmda 写法 //double Series=(double base, int limit, int Cons... 阅读全文
posted @ 2017-03-22 23:18 影落明湖 阅读(287) 评论(0) 推荐(0) 编辑
摘要: //最大子列和 //动态规划 //算法4 在线处理,T(N)=O(N) //在线的意思是指每输入一个数据就进行即时处理,在任何一个地方中止输入,算法都能正确给出当前的解 int MaxSubsequSum4(int A[], int length) { int ThisSum, MaxSum; int i; ThisSum = MaxSum = 0; for (i = 0; i Max... 阅读全文
posted @ 2017-03-22 23:14 影落明湖 阅读(420) 评论(0) 推荐(0) 编辑
摘要: #pragma once #include "stdafx.h" //用vector实现矩阵, vector传参必须用模板泛型 template class Matrix { private: //2维的矩阵,2维的vector数组,vector就是一种动态数组 vector> array; public: //constructor(), 填充数组(行数) Matrix(int r... 阅读全文
posted @ 2017-03-22 23:10 影落明湖 阅读(806) 评论(0) 推荐(0) 编辑