list构造函数://default:list l; //空的list//fill:list
l(n); //n个元素, 元素默认初始化list l(n, value); //n个元素值为value//range:list l(fir...
分类:
其他好文 时间:
2014-05-23 09:49:56
阅读次数:
314
Binary search tree to sorted double linked list.
分类:
其他好文 时间:
2014-05-22 05:30:47
阅读次数:
207
ntun下USB连接Android手机后,使用adb devices 出现如下:List of
devices attached???????????? no
permissions同时在DDMS中显示设备名也显示????,也无法显示进程名,无法查看log。一、工具介绍android-sdk-lin...
分类:
数据库 时间:
2014-05-22 05:03:11
阅读次数:
382
在VS里下载安装:Json.NET
5.0.6http://www.nuget.org/packages/Newtonsoft.Json/5.0.6反序列化json字符串为List:json字符串如下:
1 {"docs": [{ 2 "uid": 2629577, 3 ...
分类:
Web程序 时间:
2014-05-22 04:59:00
阅读次数:
484
这是携程(深圳).net开发笔试的一道题目,要求实现字符串按首字母分组并ToDictionary输出,当时没有做出来,后面研究了一下,现在将这道题的几种实现方式记录下来。首先初始化数据源,是一个List对象。如下代码。//数据源
List list = new List ...
分类:
其他好文 时间:
2014-05-22 04:32:32
阅读次数:
236
Given a linked list and a valuex, partition it
such that all nodes less thanxcome before nodes greater than or equal tox.You
should preserve the origi...
分类:
其他好文 时间:
2014-05-22 03:53:29
阅读次数:
313
1、定义 public class EntBase:where T: new() { public
List GetListDemo() { var lst = new List(); for (int i = 1; i...
分类:
其他好文 时间:
2014-05-22 03:35:38
阅读次数:
166
Find the inverse Kth node of a linked list.
分类:
其他好文 时间:
2014-05-22 03:29:46
阅读次数:
247
mysql 的守护进程是mysqld [root@localhost ~]# service
mysqld start启动 MySQL: 你可以看看你的服务是否已经添加到linux上[root@localhost ~]# chkconfig --list
mysqldmysql...
分类:
数据库 时间:
2014-05-22 02:28:19
阅读次数:
304
第一个简单的python脚本#!/usr/bin/python
#
importos
file_1=‘user.txt‘
file_2=‘lock.txt‘
#putanaccount_list
f=file(file_1)
accout_list=f.readlines()
f.close()
#putalistofthelockuser
f=file(file_2)
lock_list=[]
foriinf.readlines():
line=i.strip(‘\n‘)
lock_list..
分类:
编程语言 时间:
2014-05-21 01:19:11
阅读次数:
391