码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
C#递归复制文件夹
/// 原路徑 /// 目標路徑 private void CopyFile(string sources, string dest) { if (Directory.Exists(sources)) ...
分类:Windows程序   时间:2015-07-10 00:23:11    阅读次数:169
C#占位符
可以识别字符串中占位符的函数Console.WriteLine()和string.Format() public static void Main() { int a = 5; string b = "6"; string c = "{0}和{1}"; Console.WriteLin...
分类:Windows程序   时间:2015-07-10 00:22:52    阅读次数:534
JAVA中遍历map的值
public static void main(String[] args){ Map map = new HashMap(); map.put("id1", "wang"); map.put("id2", "sheng"); //方法一 Set set = map.keySet(); for .....
分类:编程语言   时间:2015-07-10 00:22:07    阅读次数:178
android,安卓get请求的提交以及我遇到的异常
首先说明 我是安卓4.0以上的版本,这个时候直接用网上的代码会报错的,先赋上网上的普遍代码 1 String uri = "http://url"; 2 HttpGet httpGet = new HttpGet(uri); 3 Log.e("zllmsg","new httpGet"); 4 tr...
分类:移动开发   时间:2015-07-10 00:18:02    阅读次数:210
JS中的数据类型(见《Jquery实战<附录>》)
一、所有数据类型的常量都看作对象。(一)、JS自带的数据类型怎样创建对象?number、String这些基本类型的值,23、"abc"等常量本身就是对象。Date类型:通过一个构造函数创建对象,new Date(2015,7,8)(二)、用户怎样创建自定义的对象?1.通过var o = new Ob...
分类:Web程序   时间:2015-07-10 00:13:02    阅读次数:185
Molecule to atoms
For a given chemical formula represented by a string, count the number of atoms of each element contained in the molecule and return an object. 1 wate...
分类:其他好文   时间:2015-07-10 00:11:30    阅读次数:152
工具类CTools实现字符编码转换和获取当前路径
class CTools{public: CTools(void);public: ~CTools(void);public: static std::string UNICODE_to_UTF8(const CString& unicodeString); static C...
分类:其他好文   时间:2015-07-10 00:08:42    阅读次数:163
手机号抽奖、福利彩票抽奖
手机号排序 Console.WriteLine("请输入手机号的个数:"); int a = Convert.ToInt32(Console.ReadLine()); string[] sj = new string[a]; for ...
分类:移动开发   时间:2015-07-10 00:07:40    阅读次数:148
Swift调用sha1算法
在Swift中通过调用OC的CommonCrypto库可以很方便的实现String字符串转换为sha1。 在一个swift项目中,需要使用桥接头文件(Bridging header)的方式来引入一个OC库,才能调用OC中的内容。 本文也将作为Swift项目中...
分类:编程语言   时间:2015-07-09 23:01:27    阅读次数:424
C# 模拟web   get请求、post请求
get请求:#regionget请求 ///<summary> ///get请求 ///</summary> ///<paramname="Url">请求地址</param> ///<paramname="postDataStr">请求参数</param> ///<returns></returns> publicstaticstringHttpGet(stringUrl,string..
分类:Windows程序   时间:2015-07-09 22:52:50    阅读次数:526
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!