码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
hust 1328 String
题目描述Give you a string S,assume the Sub-String Stri = S[0..i] and the length of the string is N. e.g. S = "moreandmorecold", N = 15, Str0 = "m" Str1 = ...
分类:其他好文   时间:2014-05-14 02:36:45    阅读次数:314
android内部培训视频_第四节(1)_异步网络操作
第四节(1):异步网络操作一、结合asyncTask下载网络图片1.定义下载类,继承自asyncTask,参数分别为:String(url地址),Integer(刻度,本例没有用到),BitMap(下载成功后的图片)public class downloadImageTask extends Asy...
分类:移动开发   时间:2014-05-14 02:28:28    阅读次数:537
Mongo:将查询结果转换为自定义类
1、自定义类 public class MyClass { public string Name { get; set; } public int Corners { get; set; } }2、查询数据并转换 var config = new M...
分类:其他好文   时间:2014-05-14 02:21:23    阅读次数:253
读取文件
public String BufferedReaderDemo(String path) throws IOException...{File file=new File(path);if(!file.exists()||file.isDirectory())throw new FileNotFo...
分类:其他好文   时间:2014-05-14 02:16:11    阅读次数:199
cout输出字符串指针
先给出通过字符型指针输出字符串的示例代码,如下:#include using std::cout;using std::endl; int main(){ const char *pszStr = "this is a string"; // 输出字符串 cout int ma...
分类:其他好文   时间:2014-05-14 01:33:08    阅读次数:247
linux 下消息队列发送后没有信息
在使用消息队列时,调用#include #include #include #include #include #include struct mymsg{ long mytype; char even[32];};#define VALUE (key_t)0x1fffint main(){ ...
分类:系统相关   时间:2014-05-14 00:48:02    阅读次数:487
[LeetCode]Reverse Words in a String
题目:Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Clarification:What constitu...
分类:其他好文   时间:2014-05-13 22:45:04    阅读次数:317
Java中时间或日期的处理
一、日期转换为字符串1.日期以特定的格式输出: // 创建日期并转换为yyyy-mm-dd格式 SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); String datestr = sdf.format(new Date()...
分类:编程语言   时间:2014-05-13 20:58:54    阅读次数:261
类模板产生机制
Java允许我们从多种管道为一个class生成对应的Class object。图2是一份整理。Class object 诞生管道示例:1)运用getClass()注:每个class 都有此函数String str = "abc";Class c1 = str.getClass();2)运用Class...
分类:其他好文   时间:2014-05-13 20:45:38    阅读次数:284
spring程序示例(SpringDemo项目)
Action接口:publicinterfaceAction{publicStringexecute(Stringstr);}Action的两个实现publicclassUpperActionimplementsAction{privateStringmessage;publicStringgetMessage(){returnmessage;}publicvoidsetMessage(Stringstring){message=string;}publicStringexecute(Stri..
分类:编程语言   时间:2014-05-13 03:16:42    阅读次数:326
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!