码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
说说 js String
原文:说说 js String首先说说js的字符串,说到字符串这个就和我们原来的C# 代码有区别的就是,js里面没有chart类型。就是说他里面的 “ ”和‘ ’是要表达一样的意思。 其实这个里面就有一个问题了特别实在拼接字符串的时候可能有点晕,就是我们到底是用双引号好了,还是单引号。(注意:其实在...
分类:Web程序   时间:2015-01-20 17:45:32    阅读次数:192
1004. 成绩排名 (20)
求最大最小值,不需要排序代码如下: 1 #include 2 using namespace std; 3 4 int n,max_grade=-1,min_grade=150; 5 int grade_temp; 6 string name1,name2,num1,num2,name_temp,....
分类:其他好文   时间:2015-01-20 17:36:37    阅读次数:124
winform如何保持TreeView节点展开和折叠的状态
转载:http://blog.sina.com.cn/s/blog_6abcacf5010138q5.html private Hashtable NodesStatus = new Hashtable(); private string SelectNodeFullPath = st...
分类:Windows程序   时间:2015-01-20 17:30:55    阅读次数:324
Hadoop自定义JobTracker和NameNode管理页面
为了可以方便地在hadoop的管理界面(namenode和jobtracker)中自定义展示项,使用代理servlet的方式实现了hadoop的管理界面。首先,在org.apache.hadoop.http.HttpServer中的构造函数public HttpServer(String name,...
分类:其他好文   时间:2015-01-20 17:28:36    阅读次数:676
JSON转string、JSON转Object
JSON转Object官方原文:地址:http://www.json.org/js.htmlTo convert a JSON text into an object, you can use theeval()function.eval()invokes the JavaScript compil...
分类:Web程序   时间:2015-01-20 17:26:07    阅读次数:136
【LeetCode】Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena...
分类:其他好文   时间:2015-01-20 17:24:35    阅读次数:125
[原创]Keys的基本操作总结,判断Keys中是否存在Keys.Control|Keys.Alt,移除Keys中的部分键值。
/// /// 组合键转换成字符串类型 /// /// 键值 /// 字符串 private string CombineKeyCodeToString(Keys keyCode) { if (keyCode == Keys.None) return "无"; strin...
分类:其他好文   时间:2015-01-20 17:20:12    阅读次数:181
获取公网IP
本工具是通过访问 http://city.ip138.com/ip2city.asp 并解析其返回的内容来取得本机的公网 IP 的。 源码如下。unit PublicIPGetter;interfacefunction GetPublicIP: string;implementationuse...
分类:其他好文   时间:2015-01-20 17:13:11    阅读次数:339
asp.net mvc 文件压缩下载
压缩文件相关的类: public class ZIPCompressUtil { public static Tuple Zip(string strZipTopDirectoryPath, int intZipLevel, string strPassword, stri...
分类:Web程序   时间:2015-01-20 17:12:16    阅读次数:178
复制文件夹,删除文件夹
复制文件夹procedure TForm1.Button1Click(Sender: TObject);var ss:TSHFileOpStruct; sdir,ddir:string;begin sdir:=ExtractFilePath(ParamStr(0))+'Sou'; //源目录 ...
分类:其他好文   时间:2015-01-20 17:11:28    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!