码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
【Substring with Concatenation of All Words】cpp
题目:You are given a string,s, and a list of words,words, that are all of the same length. Find all starting indices of substring(s) insthat is a concat...
分类:其他好文   时间:2015-06-09 00:46:26    阅读次数:116
java system.out.printf()的使用方法
1 package test; 2 3 4 public class Main 5 { 6 public static void main(String[] args) 7 { 8 // 定义一些变量,用来格式化输出。 9 ...
分类:编程语言   时间:2015-06-09 00:43:58    阅读次数:184
C#文件写入操作
using System; using System.IO; namespace IO操作 { class Program { static void Main(string[] args) { using(StreamWriter w=File.AppendText("IO.txt")) { ...
分类:Windows程序   时间:2015-06-08 23:29:49    阅读次数:238
iOS SDK详解之NSScanner-分析String
原创blog,转载请注明出处 blog.csdn.net/hello_hwc 欢迎关注我的iOS SDK详解专栏,这里有很多基础的文章 http://blog.csdn.net/column/details/huangwenchen-ios-sdk.html前言:NSScanner是分析String,把String转为substring和数字的很好的工具。它使用一个NSString初始化,使用...
分类:移动开发   时间:2015-06-08 23:28:46    阅读次数:669
挖一挖不常用到而又很实用的重载-Split
Split这个基本上所有的程序开发人员都用到,一般使用单字符和长字符串拆分字符串的较多,其实还有一个重载非常好用,那就是多种组合字符来进行拆分。 例如: “aaaaaaaaaa{@}bbbbbbbbbb{@}ccccccc#cccccc”; 通过 {@}组合字符进行拆分值为aaaaaaaaaa、bbbbbbbbbb、ccccccc#cccccc的数组;string sql = "aaaaaaa...
分类:其他好文   时间:2015-06-08 23:25:49    阅读次数:245
schedule vs scheduleAtFixedRate
区分二者的最好方法是 timer的启示时间设置一个过去的时间T,scheduleAtFixedRate会把从T到现在的任务全部执行,schedule只会从现在开始计时执行并任务。 public class HelloMain { private static int count = 0; public static void main(String[] args) {...
分类:其他好文   时间:2015-06-08 23:23:35    阅读次数:137
C#超级实用的一种类型—匿名类型
顾名思义 匿名类型就是没有名字的类型。当一个新的匿名对象定义与前面已经存在的类型定义的内部变量类型相同时,编译器就会只生成一个类定义,而不是各一个。匿名类型对象中仍然可以再包含匿名对象。在C#3.0中允许我们在程序中声明一个临时的类型来存储数据,例如:class Program { static void Main(string[] args) {...
分类:Windows程序   时间:2015-06-08 23:21:52    阅读次数:216
传窗体(例子是点完修改页面的修改后,直接在主窗体显示修改后的内容,不用再点一次查询)
private void button3_Click(object sender, EventArgs e) { if(listView1.SelectedItems.Count>0) { string x = listView1.Selec...
分类:Windows程序   时间:2015-06-08 23:20:16    阅读次数:240
传窗体 点完修改页面的修改后,直接在主窗体显示修改后的内容
private void button3_Click(object sender, EventArgs e) { if(listView1.SelectedItems.Count>0) { string x = listView1.Select...
分类:Windows程序   时间:2015-06-08 23:17:34    阅读次数:242
IOS数据持久化之归档NSKeyedArchiver, NSUserDefaults,writeToFile
//2.文件读写 //支持:NSString, NSArray , NSDictionay, NSData //注:集合(NSArray, NSDictionay)中得元素也必须是这四种类型, 才能够进行文件读写 //string文件读写 NSStri...
分类:移动开发   时间:2015-06-08 23:08:21    阅读次数:434
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!