1. 声明一个数组 String[] aArray = new String[5]; String[] bArray = {"a","b","c", "d", "e"}; String[] cArray = new String[]{"a","b","c","d","e"}...
分类:
编程语言 时间:
2015-04-30 12:14:45
阅读次数:
103
一、目标 自定义显示的吐司,包括内容文本格式、显示窗口格式。二、代码实现 1、在“显示号码归属地”服务类(ShowPhoneAddService)中自定义吐司方法(取名myToast(String sting)),参数string为需要显示的字符串(注:本例中只需要使用自定义的吐司来显示号码归属.....
分类:
移动开发 时间:
2015-04-30 12:10:22
阅读次数:
262
源代码:/** 采用算符优先算法计算表达式 * @param * String ex : 表达式的字符串; * @return * String 类型的计算结果; * 运算符栈operatorList按优先级存放运算符;运算数栈operandList存放运算数; */ ...
分类:
其他好文 时间:
2015-04-30 12:09:57
阅读次数:
101
PHP预定了两个异常类:Exception和ErrorExceptionException { /* 属性 */ protected string $message ; //异常消息内容 protected int $code ; //异常代码号 protected stri...
分类:
Web程序 时间:
2015-04-30 12:09:22
阅读次数:
145
import java.util.Scanner;public class Calculator { public static void main(String[] args) { System.out.println("运算符是 +,-,*,/"); Scanner sc = new Sca.....
分类:
其他好文 时间:
2015-04-30 12:08:04
阅读次数:
89
1.前缀蛮力匹配算法(linux内核string.h)char* strstr(const char *s, const char *wanted) { const size_t len = strlen(wanted); if (len == 0) return (c...
分类:
编程语言 时间:
2015-04-30 12:08:00
阅读次数:
98
来自:http://blog.csdn.net/soulscarrier protected List ListPager(List DataSource, int CurrentPageIndex, int PageSize, string FilterExpression, ref int .....
分类:
其他好文 时间:
2015-04-30 12:05:41
阅读次数:
172
import java.text.DecimalFormat;import java.util.Scanner;public class Zhidao { public static void main(String[] args) { Scanner scanner = new...
分类:
其他好文 时间:
2015-04-30 12:05:17
阅读次数:
123
1.可以执行服务器代码,通俗讲就是可以写像后台一样的代码,例如:1 2.服务端语言的表达式可以为有返回值的方法,但返回值不能太大,注意一定要有返回值。它其实也可以看成是一种绑定.例如aspx.cs代码:1 public string DisplayStr()//注意这里必须要有返回值,否则将会发生....
import java.text.DecimalFormat;import java.util.Scanner;public class Zhidao { public static void main(String[] args) { Scanner scanner = new...
分类:
其他好文 时间:
2015-04-30 12:01:18
阅读次数:
103