string djbh="";var data = db.z_ygzz.OrderByDescending(zz => zz.ygzzid).Take(1); djbh = data.Select(d => d.djbh).FirstOrDefault(...
分类:
其他好文 时间:
2014-09-25 12:31:38
阅读次数:
198
rmove原型:
std::remove
template
ForwardIterator remove (ForwardIterator first, ForwardIterator last, const T& val);
查找的得到第一个元素的位置,然后从此位置开始遍历容器,将后面的元素依次前移,跳过和value相同值的元素,也就是说,所有和value相同...
分类:
其他好文 时间:
2014-09-25 10:43:28
阅读次数:
245
today, I write code for a day ,I'm very tired,but I am very happy .Although,some problem haunt me, today is a usually day for me .I will adhere every ...
分类:
其他好文 时间:
2014-09-25 01:23:57
阅读次数:
167
最近一段时间在看算法,发现实现链表有联众方法,本科的时候学习数据结构,对于链表来说,会先建立一个头结点,firstNode,而这个first结点本身是一个node,只不过值域为空,而next域则是指向随后的结点。而在Robert Sedgewick的算法书中,是另一种实现方法,first是一个指针....
分类:
其他好文 时间:
2014-09-24 20:00:37
阅读次数:
308
Implement strStr().
Returns a pointer to the first occurrence of needle in haystack,or null if needle is not part of haystack....
分类:
其他好文 时间:
2014-09-24 17:52:27
阅读次数:
159
简介 为表单添加验证 添加校验的方法: 1. first name 不能为null 2. Email address 不能为null 3. age 必须大于18岁 为了在用户提交的时候,能够校验这个表单,我们必须在Action register 中定义一个方法: validate method @O...
分类:
其他好文 时间:
2014-09-24 17:17:47
阅读次数:
236
简介: 1.表单的提交 表单和对应的Java模型的类 在此次的例子中,我们将会模仿一个用户提交表单的动作,具体提交表单做什么,不关心,我们需要知道 first last Name,Email address ,age。 为了封装这个数据,我们提供一个简单的java Class 来存储这个信息。 Pe...
分类:
其他好文 时间:
2014-09-24 15:26:06
阅读次数:
129
对于大数据量的查询处理,记得先用explian看下,尽量的优化 例如:explain select surname,first_name form a,b where a.id=b.id Explain 解释: table:显示这一行的数据是关于那张表。 type: 这个是重要的列,显示连接使用了何...
分类:
数据库 时间:
2014-09-24 15:21:27
阅读次数:
257
每个点有2中颜色 只有一条路上的两个点颜色一样才能通过这条路 最短路加上等待的时间处理 处理的是参考别人的 唉还是太弱了
#include
#include
#include
#include
#include
using namespace std;
int s, e;
int n, m;
int a[333];
int b[333];
int c[333];
int first[...
分类:
其他好文 时间:
2014-09-24 00:30:05
阅读次数:
270
一、处理作用域(1)Python允许你在函数中访问和读取一个全局变量的值,但是不能修改。要想访问和修改一个全局变量,必须明确的表明你的意愿(参见代码1),否则就会抛出UnboundLocalError(局部变量未被赋值就被引用)(参见代码2)。#代码1name="Python"def what_ha...
分类:
编程语言 时间:
2014-09-24 00:25:25
阅读次数:
352