码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
C#中的WebBrowser控件的使用
0、常用方法Navigate(string urlString):浏览urlString表示的网址Navigate(System.Uri url):浏览url表示的网址Navigate(string urlString, string targetFrameName, byte[] postData...
分类:Web程序   时间:2014-06-08 20:36:28    阅读次数:261
[leetcode]Add Binary @ Python
原题地址:https://oj.leetcode.com/problems/add-binary/题意:Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"...
分类:编程语言   时间:2014-06-08 20:28:04    阅读次数:300
12 泛型程序设计
为什么要使用泛型程序泛型程序设计, 意味着编写的代码可以被很多不同类型的对象所重用. 例如, 我们并不希望为聚集String和File对象分别设计不同的类, 实际上,也不需要这样做, 因为一个ArrayList类可以聚集任何类型的对象, 这是一个泛型程序设计的实例. 没有泛型以前, ArrayLis...
分类:其他好文   时间:2014-06-08 20:22:13    阅读次数:211
fileUpload上传文件,并设置文件名以及保存服务器位置
我做的是上传Excel文件,保存内容到数据库。下面部分代码是fileUpload上传文件,并设置文件名以及保存服务器位置。if (fileUpload.HasFile) { string fileNameNo = Path.GetF...
分类:其他好文   时间:2014-06-08 20:14:01    阅读次数:282
swift中文文档翻译之--字符串和字符
字符串和字符A string is an ordered collection of characters, such as "hello, world" or "albatross". Swift strings are represented by the String type, which ...
分类:其他好文   时间:2014-06-08 19:43:21    阅读次数:247
利用正则表达式去掉html代码
usingSystem.Text.RegularExpressions;//利用正则表达式去掉""之间的内容。privatestringStripHT(stringstrHtml){Regexregex=newRegex("",RegexOptions.IgnoreCase);stringstrOu...
分类:Web程序   时间:2014-06-08 19:25:10    阅读次数:177
T4 生成实体和简单的CRUD操作
1) { string after = field.Substring(1); result = first + after; } return result; ...
分类:其他好文   时间:2014-06-08 19:19:20    阅读次数:347
ajax利用session传值到前台(案例)
后台: public static string TrendChart() { HttpContext context = HttpContext.Current; ReturnStr strReturn = new ReturnStr();...
分类:其他好文   时间:2014-06-08 19:12:12    阅读次数:227
String的replaceAll方法中的正则表达式用法
项目里面 需要对已手机号码进行 如下的显示比如15088688388 要显示为150****8388的效果实现这个简单的效果 方法有很多我想试试用正则表达式去实现查了点资料最终试出来以下方法可行System.out.println("15088688388".replaceAll("(\\d{3})...
分类:其他好文   时间:2014-06-08 19:00:34    阅读次数:203
poj3126
被坑了3个小时,本来以为算法错了,谁知道,竟然是素数筛弄错了!!!#include #include #include #include #include using namespace std;int a[10001];int v[10001];int n,m;struct node{ int.....
分类:其他好文   时间:2014-06-08 18:56:44    阅读次数:259
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!