高精度求幂public static char[] exponentiation(string a,int r) { char[] aa = new char[1]; string b = ""; string c = ...
用openxml 生成Excel:private void GenerateExcelUsingOpenxml(DataTable dataTable, string GeneratePath) { using (var workbook = SpreadsheetDocument.Create(G...
分类:
其他好文 时间:
2015-03-12 18:57:44
阅读次数:
172
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2015-03-12 18:42:30
阅读次数:
120
Partial 和RenderPartial:这两个的性质都是一样, 只指把一个个View给镶入进来, 只是回传值有点不一样Partial 回传的一个Object (MvcHtmlString), 回传一个String 把一堆Html给回传出来, 然后写进到主页面上@Html.Partial("Vi...
分类:
Web程序 时间:
2015-03-12 18:40:23
阅读次数:
149
/// /// /// /// /// private string ConvertFloatToString(float fl) { string str = string.Empt...
分类:
其他好文 时间:
2015-03-12 18:37:08
阅读次数:
110
在做网站项目的时候常常会发生乱码的情况,我经常用一个过滤器来解决乱码的问题,过滤器的代码入下:public class charset implements Filter { private static String encode = "UTF-8";//设置 默认UTF-8编码 ...
分类:
其他好文 时间:
2015-03-12 18:35:12
阅读次数:
98
2 一 什么是正则表达式 3 // 正则表达式(regular expression)是一个描述字符模式的对象; 4 // JS定义RegExp类表示正则表达式; 5 // String和RegExp都定义了使用正则表达式进行强大的模式匹配和文本检索与替换的函数; 6 7 二 创建正...
分类:
编程语言 时间:
2015-03-12 18:33:11
阅读次数:
136
public class Bill implements Parcelable{
// 订单号
public int orderid;
// 原系统id
public int oldid;
// 订单地址
public String address;
// 订单备注
public String ext;
// 订单电话
public String mobile;
// 订单用...
分类:
移动开发 时间:
2015-03-12 17:20:39
阅读次数:
548
1. 向 target中info 添加 NSLocationWhenInUseUsageDescription,string 类型,值是描述为什么需要用户位置,这句话会出现在 提示用户是否允许app访问用户位置提示框中。
2. 在appdelegate.m 的 - (BOOL)application:(UIApplication
*)application didFinishLaunchi...
分类:
移动开发 时间:
2015-03-12 17:20:29
阅读次数:
396
先看效果图:
public class GeneralTemplateWord2007Util {
public static void main(String[] args) {
// TODO Auto-generated method stub
String filePath = "C:/Users/Administrator/Desktop/doc/模板.docx";
S...
分类:
其他好文 时间:
2015-03-12 17:17:27
阅读次数:
4608