码迷,mamicode.com
首页 >  
搜索关键字:delete void    ( 74275个结果
(iframe实现)无刷新上传图片
Index.aspx 页面 iframe实现无刷新上传图片 Addimg2.aspx页面 Addimg2.aspx.cs 页面protected void Butt...
分类:其他好文   时间:2014-05-16 06:28:03    阅读次数:286
字符串数组逆序
1 import java.util.Arrays; 2 import java.util.Comparator; 3 4 class ResStrSort{ 5 public static void main(String[] args) { 6 String strs...
分类:其他好文   时间:2014-05-16 05:43:09    阅读次数:260
boost::interprocess(1)
发送端:#include #include #include using namespace std;#include #include #include using namespace boost::interprocess;int num = 0;mapped_region *mp_r;void...
分类:其他好文   时间:2014-05-15 16:05:06    阅读次数:258
@requesMapping的可配置参数和标注的处理方法的可选参数
@RequestMapping的可选参数 value:表示需要匹配的url的格式。 method:表示所需处理请求的http 协议(如get,post,put,delete等),可选值为RequestMethod这个enum的值。 params:格式为”paramname=paramvalue” 或...
分类:移动开发   时间:2014-05-15 15:43:39    阅读次数:405
Leetcode 树 Populating Next Right Pointers in Each Node
题意:给定一棵perfect binary tree,将它每一个节点的next指针都指向该节点右边的节点 思路:dfs 在connect一棵树的时候,需要知道这棵树的根节点和它右边的节点 1.将树的根节点和它右边的节点连接起来 2.递归地将左子树connect起来,需要知道左子树节点和右子树节点 3.递归地将右子树connect起来,需要知道右子树节点和根右边的节点的左子树节点 递归函数为: void connect(TreeLinkNode *root, TreeLinkNode *sibling) 表...
分类:其他好文   时间:2014-05-15 07:14:04    阅读次数:289
调bug心得及一个很二的bug
有时候运行结果错误,但是vs没抛异常,这时可以用trycatch来帮我们捕捉异常。 例如:bug的情况是treeview只显示一个根节点和一个子节点,还不报错,我擦~ private void f_script_Load(object sender, EventArgs e) { List parents = new t_scriptsBLL().g...
分类:其他好文   时间:2014-05-15 07:06:00    阅读次数:202
HashMap的遍历和排序
1.HashMap的遍历 package com.sheepmu; import java.util.HashMap; import java.util.Iterator; import java.util.Map; import java.util.Map.Entry; public class KMPText { public static void main(String[] ar...
分类:其他好文   时间:2014-05-15 07:05:19    阅读次数:507
第七章 快速排序
快速排序最坏情况下时间复杂度是O(n*n),但是它平均时间复杂度是O(N*logn),并且常数因子很小,可实现就地排序,所以被作为内排序的常用排序方法. #include using namespace std; void swap(int &i,int &j) { int temp=i; i=j; j=temp; } int partition(int *vector...
分类:其他好文   时间:2014-05-15 06:05:35    阅读次数:254
自定义数据转换
@InitBinder 在controller中注册一个customer protperty editor以解析request中的参数并通过date bind机制与handler method中的参数做绑定。@InitBinderpublic void initBinder(WebDataBinde...
分类:其他好文   时间:2014-05-14 13:34:32    阅读次数:229
Qt设置windows系统时间
Qt设置windows系统时间网上的回答很多,但很少有一步到位的,一般会有8小时时差,下面给出直接解决代码: #include "windows.h"void Dialog::setTime() { SYSTEMTIME st; GetLocalTime(&st);//关键在这里 st.wHour....
分类:Windows程序   时间:2014-05-14 10:29:48    阅读次数:308
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!