1.
迭代程序的设计:基础元素迭代程序的实现,通常包括下了以下五个部分:计数器(Count):用于标记循环的次数初始化(Initiate):在循环外部进行初始化正确的结束测试(Right
End Test):在什么情况下结束通常与计数器(Count)密切相关循环部分的代码块:该部分代码块通常包含了对...
分类:
其他好文 时间:
2014-06-29 13:49:03
阅读次数:
318
【题目】
Given a string S and a string T, count the number of distinct subsequences of T in S.
A subsequence of a string is a new string which is formed from the original string by deleting some (can be none) of the characters without disturbing the relati...
分类:
其他好文 时间:
2014-06-29 07:27:17
阅读次数:
210
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol get_host_by_name (referred from neti_tcpip.o).
.\Obj\HST3GSTM32F205.axf: Error: L6218E: Undefined symbol tcp_abort (referred from neti_tcpip....
分类:
其他好文 时间:
2014-06-07 16:22:39
阅读次数:
260
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y...
分类:
其他好文 时间:
2014-06-07 14:55:47
阅读次数:
249
1>MSVCRT.lib(MSVCR100.dll) : error LNK2005: "public: virtual char const * __thiscall std::exception::what(void)const " (?what@exception@std@@UBEPBDXZ) already defined in libcmt.lib(stdexcpt.obj)
1>MS...
分类:
其他好文 时间:
2014-06-07 14:42:14
阅读次数:
947
一个是如何创建JSON:var obj = {};
obj['name'] = value;
obj['anotherName'] = anotherValue;如果要创建多级的JSON,则:ips[ipId] = {};
ips[ipId]['name'] = value;
ips[ipId]['anotherName'] = anotherValue;注意要用bracket[]而不能用点. 来...
分类:
编程语言 时间:
2014-06-07 14:00:06
阅读次数:
210
1 #include 2 #include 3 using namespace std; 4 5
/*计算一个整数的二进制中1的个数*/ 6 int NumberOf1( int n) { 7 int count = 0; 8 9 while (n) {10
11 ...
分类:
其他好文 时间:
2014-06-07 10:33:11
阅读次数:
181
在实际的项目开发中,有些文件(比如bin,obj下的文件)是不需要放在svn里面的,因为每次都会重新生成。该如何排除这些文件那?我试着在svn
server上删除了这些文件夹,但是在文件夹上还是显示有更改。该如何彻底忽略这些文件那?【方法】展开文件夹,选中要排除的文件或文件夹,右键选择如下的菜单。完...
分类:
其他好文 时间:
2014-06-07 09:43:55
阅读次数:
249
string
sql="";dbhelper.ExecuteNonQuery(sql);DataTable dt =
dbhelper.GetDataTable(sql);if (dt != null && dt.Rows.Count > 0){
SqlBulkCopy bcp = new SqlB...
分类:
数据库 时间:
2014-06-07 07:17:20
阅读次数:
229
前言 好记性不如烂“笔头”系列——大话设计模式学习笔记
目录面向对象基础面向对象基础什么是类与实例
一切事物皆为对象,即所有的东西老师对象,对象就是可以看到、感觉到、听到、触摸到、尝到、或闻到的东西。准确地说,对象是一个自包含的实体,用一组可识别的特性和行为来标识。面向对象编程,英文叫
Obj...
分类:
其他好文 时间:
2014-06-05 13:31:13
阅读次数:
263