码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
C# 线程中操作空间
1.在Form1类中添加以下代码 private delegate void UpdateStatusDelegate(string status); private void UpdateStatus(string status) { this.t...
分类:编程语言   时间:2015-01-03 17:09:06    阅读次数:145
string实现
class my_string{ friend ostream& operator<< (ostream&,my_string&);public: my_string():data(NULL) { } my_string(const char* str) { int n = strlen(s...
分类:其他好文   时间:2015-01-03 17:07:13    阅读次数:178
UvaLive 4254 Processor 优先队列
题目链接:点击打开链接 除了Integer, String等,其他(即对象)都是引用。。(就是地址,想要和C一样的效果要新建一个对象) import java.io.PrintWriter; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java...
分类:其他好文   时间:2015-01-03 15:57:31    阅读次数:261
.NET中的StringBuilder
为什么要使用StringBuilder 为什么使用StringBuilder要从string对象的特性说起。 string对象在进行字符串拼接时,因为字符串的不可变性,string对象会每次拼接,都会复制一个副本出来进行运算,而本身的串仍然留在内存中,大量的临时片段会造成不可忽视的性能损耗。所以在进...
分类:Web程序   时间:2015-01-03 15:49:08    阅读次数:197
c++字符串详解(转)
c++字符串详解(转)之所以抛弃char*的字符串而选用C++标准程序库中的string类,是因为他和前者比较起来,不必担心内存是否足够、字符串长度等等,而且作为一个类出现,他集成的操作函数足以完成我们大多数情况下(甚至是100%)的需要。我们可以用 = 进行赋值操作,== 进行比较,+ 做串联(是...
分类:编程语言   时间:2015-01-03 14:37:30    阅读次数:176
(转载)OC学习篇之---Foundation框架中的NSString对象和NSMutableString对象
在之前的一篇文章中我们说到了Foundation框架中的NSObject对象,那么今天在在来继续看一下Foundation框架中的常用对象:NSString和NSMutableString。在OC中NSString对象是不可变的,和Java中的String一样的,而NSMutableString是可...
分类:其他好文   时间:2015-01-03 14:31:03    阅读次数:253
Discuz! 6.x/7.x 版本 前台任意代码执行漏洞
一、漏洞原理:由于php5.3.x版本里php.ini的设置里request_order默认值为GP,导致Discuz! 6.x/7.x 全局变量防御绕过漏洞。include/global.func.php代码里:01function daddslashes($string, $force = 0)...
分类:Web程序   时间:2015-01-03 14:29:07    阅读次数:304
[LeetCode]49 Anagrams
https://oj.leetcode.com/problems/anagrams/http://blog.csdn.net/linhuanmars/article/details/21664747publicclassSolution{ publicList<String>anagrams(String[]strs){ intlen=strs.length; Map<Map<Integer,Integer>,List<String>>map=newHash..
分类:其他好文   时间:2015-01-03 13:22:23    阅读次数:194
九度OJ—题目1094:String Matching
题目描述:     Finding all occurrences of a pattern in a text is a problem that arises frequently in text-editing programs.     Typically,the text is a document being edited,and the pattern searched f...
分类:其他好文   时间:2015-01-03 11:59:34    阅读次数:157
安卓http-get请求中有中文怎么办?
安卓经常使用http与服务器交互,但是如果提交的数据有中文,就经常出现乱码。 1.首先将workbench编码改成utf-8 2.将请求的url中的英文进行转码 3.拼接最终url,并请求 String test=URLEncoder.encode("罗占伟", ...
分类:移动开发   时间:2015-01-03 11:58:37    阅读次数:137
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!