码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
C# 设置文件夹的访问权限
/// /// 设置文件夹的ACL /// /// 文件夹路径 /// 用户 /// 权限 /// 拒绝访问 /// public static bool SetFolderACL( string folderPath, ...
分类:Windows程序   时间:2015-01-23 13:21:41    阅读次数:1586
LeetCode Word Break
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For example, givens = "leetcode",dict = ["leet", "code"...
分类:其他好文   时间:2015-01-23 13:21:09    阅读次数:131
C语言指针体会
首先,指针是指向的内存地址,他存储的是地址值。int a=10;int *p=&a;p指向的(存储的)是a变量放在内存中的位置的值,*p表示a变量的值int const *p指向的地址可以变,但地址中的值是同一个int *const p 指向的地址不可变,但是地址中的值可变int **string ...
分类:编程语言   时间:2015-01-23 13:21:08    阅读次数:117
ASP.NET DataSet查询结果转换为JSON格式数据
欢迎大家进QQ群来讨论:84479667方法如下:public static string nulldata = "{\"result\":\"true\",\"msg\":\"没有相关数据\"}"; #region 查询结果转为json /// /// ...
分类:Web程序   时间:2015-01-23 13:20:26    阅读次数:169
C#中使用正则表达式验证电话号码、手机号、身份证号、数字和邮编
验证电话号码的主要代码如下: public bool IsTelephone(string str_telephone) { return System.Text.RegularExpressions.Regex.IsMatch(str_tele...
分类:移动开发   时间:2015-01-23 13:11:10    阅读次数:167
DropdownList绑定的两种方法
动态绑定方法一:动态绑定数据库中的字段。SqlConnection conn = UtilitySqlClass.OperateDataBase.ReturnConn();string strSQL = "select * from CompanyType";SqlDataAdapter ada =...
分类:其他好文   时间:2015-01-23 13:08:56    阅读次数:191
java读取.properties配置文件
文件位置:文件内容:代码:public class Test{ public static void main (String[] args) throws IOException{ Properties pro = new Properties(); FileIn...
分类:编程语言   时间:2015-01-23 13:03:13    阅读次数:140
经纬度转换成十进制
public class TestJingWeiDU { public static void main(String[] args) { TestJingWeiDU t = new TestJingWeiDU(); String lat = "35...
分类:其他好文   时间:2015-01-23 12:56:53    阅读次数:324
得到文件的创建时间修改时间等
#include #include #include // GetLastWriteTime - Retrieves the last-write time and converts// the time to a string//// Return value...
分类:其他好文   时间:2015-01-23 12:53:42    阅读次数:182
多线程中的死锁举例与分析(转)
1. 一个特殊构造的程序考虑下面这个专门为说明多线程中的死锁现象而构造的程序:import java.util.LinkedList;public class Stack { public static void main(String[] args) { final Stack...
分类:编程语言   时间:2015-01-23 12:38:32    阅读次数:251
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!