public static void main(String[] args) throws IOException, WriteException{ jxl.write.WritableWorkbook ww = Workbook.createWorkbook(new File("M:\\works...
分类:
其他好文 时间:
2015-03-18 11:59:16
阅读次数:
122
private void comeFromJar(Class cl) { String className = cl.getName(); className = className.replace('.', '/'); String resource = "/" + className + ...
分类:
其他好文 时间:
2015-03-18 11:55:40
阅读次数:
86
1.创建工程,新建类,HelloWorld.java,代码如下: 1 package com.liuke; 2 3 4 5 public class HelloWorld { 6 7 public String getHello(){ 8 9 return "调用自定义...
分类:
编程语言 时间:
2015-03-18 10:22:47
阅读次数:
154
1 private bool IsNum(string str) 2 { 3 try 4 { 5 foreach (char c in str) 6 { 7 ...
类型 前缀 类型 实例对象 o object oDiv数组 a Array aItems字符串 s String sUserName整数 i Integer iItemCount布尔值 b Boolean bIsComplete浮点数 f Float fPrice函数 fn Function fnH...
分类:
Web程序 时间:
2015-03-18 10:13:23
阅读次数:
135
C#:STRING.FORMAT数字格式化输出1.各种常用数字格式化货币转换 C 或 c(默认小数点后2位。C3后面跟的数字就代表小数后几位) string.Format("{0:C}",a)a.ToString("C")//$2.50 string.Format("{0:C3}",a)a.ToSt...
常量可以理解为值不变的量,常量被定义后,在脚本的其他任何地方都不能改变,一个常量由英文字母,下划线,和数字组成,但是数字不能作为常量的首字母。
在php中使用#define()函数来定义常量,该函数的语法格式如下:
define(string constant_name,mixed value,case_sensitive=true)
获取常量的值的方法有两种,一种方法是:使用常量的...
分类:
Web程序 时间:
2015-03-18 09:02:35
阅读次数:
149
方法一: protected void Page_Load(object sender, EventArgs e) { string[] Day = new string[] { "星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六" }; string[] ...
分类:
其他好文 时间:
2015-03-18 09:00:27
阅读次数:
170
This question is pretty straight forward. 1 class Solution { 2 public: 3 string addBinary(string a, string b) { 4 int runnerA = a.size()-1...
分类:
其他好文 时间:
2015-03-18 07:48:23
阅读次数:
132
Use a hash table to record it. The tricky part is that when the hash value is > 0, it is the index + 1. Otherwise, that string already exists in resul...
分类:
其他好文 时间:
2015-03-18 07:47:38
阅读次数:
100