码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Android 定时器
Andorid定时器封装类public class TimerUtil { private static final String TAG = "TimerUtil"; private static Handler mTimeHandler = null; priva...
分类:移动开发   时间:2015-04-13 18:35:26    阅读次数:146
Android Logcat 封装类
简单日志封装类: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
C# 页面抓取类
抓取网站页面的内容,简单的类应用,代码如下: /// /// 获取页面内容 /// /// Url链接 /// public string WebHtmlCon(string url) { ...
分类:Windows程序   时间:2015-04-13 18:30:21    阅读次数:204
String 与 StringBuilder
String 与 StringBuilder
分类:其他好文   时间:2015-04-13 18:26:39    阅读次数:144
C#常用語法糖(Csharp Syntactic sugar)
首先需要声明的是“语法糖”这个词绝非贬义词,它可以给我带来方便,是一种便捷的写法,编译器会帮我们做转换;而且可以提高开发编码的效率,在性能上也不会带来损失。这让java开发人员羡慕不已,呵呵。1. 经过简化的Property早些时候我们这样声明Propertyprivate string _myNa...
分类:Windows程序   时间:2015-04-13 18:24:52    阅读次数:141
格式化字符串
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
Longest Palindromic Substring
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
[LeetCode] Valid Palindrome
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加密
/// /// 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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!