码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
用C实现字符串分割并返回所有子串
#include #include #include #include char ** split(char *mother, char split_char){ char *arry[1024]; //the MAX sub string is 1024 and you can modif...
分类:其他好文   时间:2015-01-22 14:35:39    阅读次数:181
Leetcode#87 Scramble String
原题地址两个字符串满足什么条件才称得上是scramble的呢?如果s1和s2的长度等于1,显然只有s1=s2时才是scramble关系。如果s1和s2的长度大于1,那么就对s1和s2进行分割,划分成两个子问题分别处理。如何分割呢?当然不能任意分割。假设分割后s1变成了s11和s12,s2变成了s21...
分类:其他好文   时间:2015-01-22 13:08:38    阅读次数:154
在ASP.NET中,IE与Firefox下载文件带汉字名时乱码的解决方法
[CheckSession] public ActionResult ExpDataTwo() { try { string Status_Missionn = Request.QueryString["sexch"]; ParadoxWebService.ParadoxServiceClien.....
分类:Web程序   时间:2015-01-22 13:05:01    阅读次数:173
C#中值传递与引用传递的区别
以值传递参数当实参当作值来传递时,就产生了一个新的拷贝。 class Test { static void Main(string[] args) { int x=8; Fo(x); Console.WriteLine("x={...
分类:Windows程序   时间:2015-01-22 12:59:59    阅读次数:208
java中base64
// 将 s 进行 BASE64 编码 public static String getBASE64(String s) { if (s == null) return null; return (new sun.misc.BASE64Encoder()).encode( s.getBytes() ...
分类:编程语言   时间:2015-01-22 12:53:07    阅读次数:220
ListView的使用
MainActivity.java 1 public class MainActivity extends ActionBarActivity { 2 3 private ListView listView; 4 //ArrayAdapter主要用于设置简单的数据格式如String...
分类:其他好文   时间:2015-01-22 12:48:57    阅读次数:219
用C实现字符串分割并返回所有子串
#include #include #include #include char ** split(char *mother, char split_char){ char *arry[1024]; //the MAX sub string is 1024 and you can modify .....
分类:其他好文   时间:2015-01-22 12:35:56    阅读次数:167
关于printf的转换说明与转义的区别
printf("character: %c\ninteger: %d\nfloating point: %f\n", '}', 34, 3.14); printf 中的第一个字符串称为格式化字符串(Format String),它规定了后面几个常量以何种格式插入到这个字符串中,在格式化字符串中%号....
分类:其他好文   时间:2015-01-22 12:34:42    阅读次数:169
安装包创建桌面快捷方式
private void CreateDesktop() { string path = this.Context.Parameters["targetdir"]; path = path.Substring(0, path.LastIn...
分类:其他好文   时间:2015-01-22 12:29:11    阅读次数:157
Android 占位符 %1$s %1$d
1、整型,比如“我今年23岁了”,这个23是整型的。在string.xml中可以这样写,我今年%1$d岁了  在程序中,使用  [java] view plaincopy String sAgeFormat = getResources().getString(R.string.old);   String sFinalA...
分类:移动开发   时间:2015-01-22 11:18:28    阅读次数:180
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!