昨天要在 std::list 中判断是否存在某一字符串 std::string 。我首先想先迭代+std::string自带的"==" 判断,也就是 list listStr; string s1; for(vector::iterator itr=lis...
分类:
其他好文 时间:
2014-06-15 23:55:32
阅读次数:
386
1. Microsoft.SharePoint.dllCreate EventFiring.cs 1.Right-click on the project, select Add and click on New Item. 2.In the templates pane, select Class...
分类:
其他好文 时间:
2014-06-15 23:35:26
阅读次数:
277
1 package cn.itcast.spring.jdbc; 2 3 import java.util.List; 4 5 import org.springframework.jdbc.core.support.JdbcDaoSupport; 6 7 public class Pers...
分类:
数据库 时间:
2014-06-15 22:19:23
阅读次数:
443
今天看到别人的代码使用 Linq 的Distinct进行去重。发现有很多需要注意的地方。实现方式如下:Linq 的Distinct方法需要传递一个自己实现IEqualityComparer的类来作为比较器。 public static class EnumerableExtension ...
分类:
其他好文 时间:
2014-06-15 22:07:35
阅读次数:
307
原题地址:https://oj.leetcode.com/problems/merge-two-sorted-lists/题意:Merge two sorted linked lists and return it as a new list. The new list should be made...
分类:
编程语言 时间:
2014-06-15 21:58:31
阅读次数:
238
Dictionary list = new Dictionary(); list.Add("d", 1); //3.0以上版本 foreach (var item in list) { ...
分类:
其他好文 时间:
2014-06-15 21:54:38
阅读次数:
248
原题地址:https://oj.leetcode.com/problems/reverse-nodes-in-k-group/题意:Given a linked list, reverse the nodes of a linked listkat a time and return its mod...
分类:
编程语言 时间:
2014-06-15 21:24:43
阅读次数:
293
${item_index?if_exists+1}//获取循环下标值,默认是从0开始的. ${item.userName?if_exists}
分类:
其他好文 时间:
2014-06-15 20:54:59
阅读次数:
346
在JAVA的util包中有两个所有集合的父接口Collection和Map,它们的父子关系: java.util +Collection 这个接口extends自 --java.lang.Iterable接口 +List 接口 -ArrayList 类 -LinkedList 类 -Vector 类...
分类:
编程语言 时间:
2014-06-15 20:23:51
阅读次数:
280
http://acm.hdu.edu.cn/game/entry/problem/list.php?chapterid=1§ionid=21.2.5
#include
/*
题意:找闰年。
if((i%4==0 && i%100!=0) || i%400==0)count++;
3
2005 25
1855 12
2004 10000
2108
1904
43236
*/
int ma...
分类:
其他好文 时间:
2014-06-14 06:32:08
阅读次数:
320