/// /// 将output.config内容传到app.config /// string ReadString; //两个地址 string path1 = @"D:\wcf\xml文件读写\Xml_WirteOrR...
1、String format用法:String query = "FROM Resource WHERE 1=1 %s"; String condition = "AND type=1 OR type=2 "; String hql = String.format(q...
分类:
编程语言 时间:
2015-02-27 16:26:37
阅读次数:
107
上学时我们很多学了很多种排序算法,不过在c++stl中也封装了sort等函数,头文件是#include 函数名功能描述sort对给定区间所有元素进行排序stable_sort对给定区间所有元素进行稳定排序partial_sort对给定区间所有元素部分排序partial_sort_copy对给定区间复...
分类:
编程语言 时间:
2015-02-27 16:25:48
阅读次数:
187
Reference:http://www.codeproject.com/Questions/52709/C-Bitmap-Save-Generic-GDI-Error这个网页里解释了为什么会出现这样的问题和怎么解决的。Refernence:GDI+中发生一般性错误Bitmap(string pat...
public class TopToastView { /** * 初始化Toast提示,并show * */ public static void initToast(Context context,String top_hint,int img_res){ ...
分类:
其他好文 时间:
2015-02-27 13:31:10
阅读次数:
127
【题目】输入一段文章(255个字符以内),求文章中单词的个数,相同单词只记一次,The 和 the 视作相同。【敲代码】//网友代码var article,w:string; arr:array[1..255] of string; i,len,ans:longint;function check(...
分类:
编程语言 时间:
2015-02-27 13:29:41
阅读次数:
178
Binary String Matching时间限制:3000ms | 内存限制:65535KB难度:3描述Given two strings A and B, whose alphabet consist only ‘0’ and ‘1’. Your task is only to tell ho...
分类:
其他好文 时间:
2015-02-27 13:24:23
阅读次数:
141
今天项目中用到这一块,是一个b2b商城,业务是别人给客户留言后,客户从会员中心的留言管理中查看,用checkbox实行多选和全选后进行批量审核首先在checkbox后加个hidden,作用见代码: string getuserid = ""; for (int i = 0; i < R...
分类:
其他好文 时间:
2015-02-27 13:23:54
阅读次数:
152
protected void Page_Load(object sender, EventArgs e) { CreateCheckCodeImage(RndNum()); } private string RndNum() ...
分类:
Web程序 时间:
2015-02-27 13:19:04
阅读次数:
154
java.lang.string.split split 方法 将一个字符串分割为子字符串,然后将结果作为字符串数组返回。 stringObj.split([separator,[limit]]) stringObj 必选项。要被分解的 String 对象或文字。该对象不会被 split 方法修改。...
分类:
编程语言 时间:
2015-02-27 13:19:04
阅读次数:
173