码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Reverse Words in a String
https://oj.leetcode.com/problems/reverse-words-in-a-string/Given an input string, reverse the string word by word.For example,Given s = "the sky is bl...
分类:其他好文   时间:2015-01-13 13:54:37    阅读次数:135
Android根据URL获取Bitmap
为了方便记忆,写下。s为url需要添加网络权限,还有开启子线程访问网络 public Bitmap getBitmap(String s) { Bitmap bitmap = null; try { URL url = new URL(s); bitmap = BitmapFactor...
分类:移动开发   时间:2015-01-13 13:53:12    阅读次数:120
strtok函数的妙用,分割字符串
strtok分割字符串函数,很好的解决了字符分割的要求,不必遍历取关键字再区后面字符 这样字符串中查找关键值获取后面的东西就方便多了...
分类:其他好文   时间:2015-01-13 12:33:07    阅读次数:132
Java String.startsWith()方法
描述 java.lang.String.startsWith(String prefix ) 如果此字符串的方法测试用指定的前缀开始. 声明 以下是声明java.lang.String.startsWith()方法 public boolean startsWith(String prefix) 参数        prefix -- 这是值的前...
分类:编程语言   时间:2015-01-13 12:31:03    阅读次数:181
C#循环读取文件流,按行读取
public Dictionary GetSourceDisksElements(String section){ section = "[" + section; Dictionary keyToValue = new Dictionary(); //打开...
分类:Windows程序   时间:2015-01-13 12:29:24    阅读次数:825
HTML转换成word文档
1工具类保存word文件 public class WordAction { public static void SaveAsWord(string fileName, string pFileName)//使用原生方法将mht转换为word文档,不是那种直接修改后缀名的方式 ...
分类:Web程序   时间:2015-01-13 12:10:19    阅读次数:424
C#中 HttpWebRequest和 webclient 的POST方法
WebClient:1.post字符串 public string SendField_wc(string URL,string CookieData, string postData) { WebClient myWebClient = new WebClie...
分类:Windows程序   时间:2015-01-13 12:03:22    阅读次数:432
c#执行sql语句里面带有like查询的时候如何防止sql注入
#region/// 过滤html,js,css代码 /// /// 过滤html,js,css代码 /// /// 参数传入 /// public static string CheckStr(string html) { System.Text.Regu...
分类:数据库   时间:2015-01-13 12:02:36    阅读次数:175
Excel转换成PDF
public class Office2Pdf { public bool DOCConvertToPDF(string sourcePath, string targetPath) { //StreamReader reader = new...
分类:其他好文   时间:2015-01-13 12:01:39    阅读次数:101
C# HttpWebRequest和 webclient 的POST方法
C# HttpWebRequest和 webclient 的POST方法WebClient:1.post字符串 public string SendField_wc(string URL,string CookieData, string postData) { ...
分类:Windows程序   时间:2015-01-13 11:55:55    阅读次数:277
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!