平时做算法题目, 没少用到 GDB, 但今天才意识到 Project 的调试方法与单个 cpp
文件的不同之处, 比如 gdb list 命令, 在单个 cpp 文件中列出的是源代码, 但在 project 中却什么都不显示Project Debug 时,
file 参数的使用[1] 有讲解, UP...
分类:
数据库 时间:
2014-04-30 17:23:01
阅读次数:
527
java中结合struts2自定义标签的使用一、建立一个继承于SimpleTagSupport类实现它的doTag方法
1 package com.xiangshang.tag; 2 3 import java.io.IOException; 4 import
java.util.List; 5 ....
分类:
编程语言 时间:
2014-04-30 16:51:52
阅读次数:
619
原题地址:http://oj.leetcode.com/problems/sort-list/题意:链表的排序。要求:时间复杂度O(nlogn),空间复杂度O(1)。解题思路:由于题目对时间复杂度和空间复杂度要求比较高,所以查看了各种解法,最好的解法就是归并排序,由于链表在归并操作时并不需要像数组的...
分类:
编程语言 时间:
2014-04-30 15:09:41
阅读次数:
428
题目:Erwin最近对一种叫"thair"的东西巨感兴趣。。。在含有n个整数的序列a1,a2......an中,三个数被称作"thair"当且仅当i k do
dec(j); 32 if i j); 40 if i 0) do 59 begin 60 in...
分类:
其他好文 时间:
2014-04-30 14:58:46
阅读次数:
501
ASP.NET Web Pages framework examples of the
Database helper do not include calls to Close or Dispose because the framework
itself is designed to call ...
分类:
数据库 时间:
2014-04-30 14:08:51
阅读次数:
629
1,inverse属性的作用:只有集合标记(set/map/list/array/bag)才有invers属性;以set为例,set的inverse属性决定是否把对set的改动反应到数据库中去,inverse=false(反应),inverse=true(不反应);默认值是false;one-to-...
分类:
系统相关 时间:
2014-04-30 13:21:33
阅读次数:
525
1 /// 2 /// 将集合转换成DataTable 3 /// 4 /// 集合 5 /// 6
public static DataTable ToDataTable(IList list) 7 ...
分类:
其他好文 时间:
2014-04-29 17:22:46
阅读次数:
321
//冒泡排序publicclassbubblesorter{publicvoidsort(int[]list){inti,j,temp;booldone=false;j=1;while((jlist[i+1]){done=false;temp=list[i];list[i]=list[i+1];li...
分类:
其他好文 时间:
2014-04-29 17:21:45
阅读次数:
429
where do i beginto tell a story of how great a love
can bethe sweet love story that is older than the seathe simple truth about the
love she brings to...
分类:
其他好文 时间:
2014-04-29 17:18:46
阅读次数:
342
JSONArray--------------->List----------------->Adapter------------------>ListView
分类:
Web程序 时间:
2014-04-29 16:34:46
阅读次数:
337