Given two binary strings, return their sum
(also a binary string).For example,a ="11"b
="1"Return"100".思路:一个二进制字符串相加;首先从字符串的末尾开始,先二进制字符转化为数字,然后再相加;然后将...
分类:
其他好文 时间:
2014-05-05 23:10:15
阅读次数:
319
一、Dictionary 的介绍 dictionary 是python
的内置类型之一,它定义键和值之间一对一的关系 1.定义dictionary 2.修改dictionary NOTE: Dictionary 是无序的。当使用
dictionary 时,您需要知道:dictionary 的 key...
分类:
编程语言 时间:
2014-05-04 11:39:32
阅读次数:
477
1: /// 2: ///
修改web.config或app.config文件appSettings配置节中的Add里的value属性 3: /// 4: /// 5: ///
注意,调用该函数后,会使整个Web Application重启,导致当前所有的会话丢...
分类:
移动开发 时间:
2014-05-04 11:05:06
阅读次数:
359
//继承SQLiteOpenHelper类,
public class DictionaryOpenHelper extends SQLiteOpenHelper{
public static final String DABASENAME = "dictionary";
private static final int DATABASE_VERSION = 1;
pri...
分类:
移动开发 时间:
2014-05-03 23:49:30
阅读次数:
589
var Item1: TListViewItem;begin Item1 :=
ListView1.Items.Add; Item1.Purpose:=TListItemPurpose.Header;//
Item1.Purpose:=TListItemPurpose.Footer; Item1.t...
分类:
移动开发 时间:
2014-05-03 22:34:33
阅读次数:
547
首先看下面这个例子
public static void main(String[] args) {
ArrayList al1 = new ArrayList();
al1.add(1);
ArrayList al2 = new ArrayList();
al2.add("hello");
//int型链表和string型链表,结果为true
System.out.p...
分类:
编程语言 时间:
2014-05-03 22:02:53
阅读次数:
376
int BOOST_LOCAL_FUNCTION(int x, int y) { // Local function.
return x + y;
} BOOST_LOCAL_FUNCTION_NAME(add)
BOOST_TEST(add(1, 2) == 3); // Local function call.
int BOOST_LOCAL_FUNCTION(void) ...
分类:
其他好文 时间:
2014-05-03 21:47:48
阅读次数:
332
折腾了一个中午,在终端输入 vim myProgram
然后编辑以下内容
#!/bin/bash
clear
echo ""
echo "The Telephone Book"
echo ""
echo "1.Display A Telephone Number"
ehco "2.Add A New Telephone Number"
echo ""
echo "Q Quit"
ec...
分类:
系统相关 时间:
2014-05-03 21:26:33
阅读次数:
483
auto root = Dictionary::create();
auto string = String::create("string element value");
root->setObject(string, "string element key");
auto array = Array::create();
...
分类:
其他好文 时间:
2014-05-03 16:27:48
阅读次数:
380
#include
#include
#include
#include
#include
using namespace std;
#define N 20020
struct node{
int from, to, dou, nex;
}edge[N];
int head[N], edgenum;
void add(int u, int v,int dou){
node E={u,v,dou...
分类:
其他好文 时间:
2014-05-03 15:25:32
阅读次数:
340