To add up all the numbers in a list, you can use a loop like this: Total is initialized to 0. Each time through the loop, x gets one element...
分类:
其他好文 时间:
2014-07-16 19:29:14
阅读次数:
234
Two SumGiven an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the...
分类:
其他好文 时间:
2014-07-15 08:45:17
阅读次数:
236
https://wiki.debian.org/iwlwifiDebian 7 "Wheezy"Add a "non-free" component to /etc/apt/sources.list, for example: # Debian 7 "Wheezy"deb http://http.d...
分类:
其他好文 时间:
2014-07-15 00:53:21
阅读次数:
239
备份数据库#mysqldump 数据库名 >数据库备份名#mysqldump -A -u用户名 -p密码 数据库名>数据库备份名#mysqldump -d -A --add-drop-table -uroot -p >xxx.sql1.导出结构不导出数据mysqldump -d 数据库名 -uroo...
分类:
数据库 时间:
2014-07-15 00:48:13
阅读次数:
333
修改Eclipse默认JDK:window preferences java installed JREs Add.. 选择 Standard VM 选择jdk安装目录 finish修改项目使用JDK环境:对项目右键 Java build Pat...
分类:
系统相关 时间:
2014-07-14 14:50:34
阅读次数:
247
网上查找Linux硬盘驱动的话能找到好多相关信息,但是具体代码都没有。经过一番努力,实现了硬盘读写的代码,特来分享一下。可能因为硬盘控制器更新的原因,一些新式的笔记本上使用这些代码会失败。不过在VmWare上是可以用的。这个项目的git地址:git://code.csdn.net/hanjianqiao/dingus.git。在commit为“Add harddisk”的版本直接编译出的镜像便是下...
分类:
其他好文 时间:
2014-07-14 12:50:21
阅读次数:
254
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2014-07-13 18:20:52
阅读次数:
202
题目来源:Light OJ 1411 Rip Van Winkle`s Code
题意:3中操作 1种查询 求区间和 其中每次可以把一段区间从左到右加上1,2,3,。。。或者从右到左加上。。。3,2,1 或者把某个区间的数都置为v
思路:我是加了6个域
add是这段区间每个数都要加上add add是这么来的 对与123456。。。这个等差数列 可能要分为2个区间 那么我就分成123和12...
在System.Configuration命名空间下死活找不到ConfigurationManager类,执行程序便报错。遇到这种情况,需要对项目添加引用。方法如下:
右键references->add references->assemblies下的framework->勾选System.Configuration->ok
如图所示。
...
分类:
其他好文 时间:
2014-07-13 17:59:19
阅读次数:
166
学习AddIn开发,遇到了些稀奇古怪的问题,网上的资料少之又少。(1)AddIn开发,主要是通过ArcMap静态变量,与主程序中的数据等进行交互(2)failed to register Add In .esriAddIn异常,此类异常为Visual Studio中项目名称或者类名称中出现了中文名(...
分类:
其他好文 时间:
2014-07-13 17:50:30
阅读次数:
312