Andorid定时器封装类public class TimerUtil { private static final String TAG = "TimerUtil"; private static Handler mTimeHandler = null; priva...
分类:
移动开发 时间:
2015-04-13 18:35:26
阅读次数:
146
简单日志封装类:public final class CLog { public static final boolean DEBUG = true; private CLog() { } public static void d(String tag, String des...
分类:
移动开发 时间:
2015-04-13 18:30:57
阅读次数:
227
抓取网站页面的内容,简单的类应用,代码如下: /// /// 获取页面内容 /// /// Url链接 /// public string WebHtmlCon(string url) { ...
首先需要声明的是“语法糖”这个词绝非贬义词,它可以给我带来方便,是一种便捷的写法,编译器会帮我们做转换;而且可以提高开发编码的效率,在性能上也不会带来损失。这让java开发人员羡慕不已,呵呵。1. 经过简化的Property早些时候我们这样声明Propertyprivate string _myNa...
C#的String.Format的用法,一般地我们可以直接使用string.format()或int.ToString()和float.ToString() 1、这个例子是小数点固定两位,两个小数点用 0.00表示,如果float的小数点后的值小于0,将会补两个0 String.Format("{0...
分类:
其他好文 时间:
2015-04-13 18:24:45
阅读次数:
127
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longes...
分类:
其他好文 时间:
2015-04-13 18:24:42
阅读次数:
112
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Pana...
分类:
其他好文 时间:
2015-04-13 18:23:52
阅读次数:
105
/// /// MD5 16位加密 /// /// /// public static string GetMd5Str(string ConvertString) { MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider(...
分类:
其他好文 时间:
2015-04-13 18:19:16
阅读次数:
106
#include "stdafx.h"#include #include void Squeeze(char s[],char c);int main(){char str[20],ch;printf_s("input a string:");gets_s(str);printf_s("input ...
分类:
其他好文 时间:
2015-04-13 18:14:43
阅读次数:
114