码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
C# 导入Excel到DataSet中
namespace exchange { class Import { /// /// 导入Excel到DataSet中 /// /// 文件的路径和文件全名,含扩展名 /// public DataSet ExcelToDataSet(string strFileSour...
分类:Windows程序   时间:2014-12-19 14:20:52    阅读次数:270
MVC 如何获取外网IP
1 public string GetIP() 2 { 3 string tempIp = ""; 4 WebRequest wr = WebRequest.Create("http://city.ip138.com/ip2city.asp"); 5 Stream s = wr.Ge...
分类:Web程序   时间:2014-12-19 14:11:26    阅读次数:226
Memento
#include #include using namespace std;class Memento{public: Memento(string sState) { m_sState = sState; } string GetState() { return m_sStat...
分类:其他好文   时间:2014-12-19 13:03:47    阅读次数:154
vb.net播放资源文件中的音乐
1、在自己的工程里添加一个资源文件。2、打开添加的资源文件,资源类型选择为音频,点击添加资源把准备好的wav格式音乐文件添加进入资源文件。3、设置资源属性和文件属性为嵌入4、代码以及调用方法 1 Private Sub Play_Music(ByVal Mname As String) 2 ...
分类:Web程序   时间:2014-12-19 13:02:53    阅读次数:368
node API buffer
https://cnodejs.org/topic/5189ff4f63e9f8a54207f60c1、拼接字符串时,String比buffer要快,buffer需要toString()。当保存非utf-8字符串,2进制等等其他格式的时候,需要使用buffer。var string3, buffer...
分类:Windows程序   时间:2014-12-19 13:01:39    阅读次数:209
Hibernate继承(1)单表继承
Hibernate继承(1)单表继承代码:package bean;import java.util.Date;public class Person { private Integer id; private String name; private int password; ...
分类:Web程序   时间:2014-12-19 12:59:21    阅读次数:186
2014-12-18 集合
//首先定义一个新的array类class ArrayListjihe { static void Main(string[] args) { ArrayList arr = new ArrayList(); arr.Add(3); arr.Add("hello"); //通过添加元素的先后顺序生成...
分类:其他好文   时间:2014-12-19 12:51:45    阅读次数:153
beego datatables排序函数
datatables是个很不错的表格,使用GO时排序问题很麻烦,于是写了个函数 package tools import ( "github.com/astaxie/beego/context" "strconv" ) //datatables的排序 func DT_order(aColumns []string, Inp...
分类:编程语言   时间:2014-12-19 12:26:51    阅读次数:219
js string 转 int
var ? str=‘12‘ ; ? alert( Number(str) );? //得到12 ? alert(parseInt(str));? //得到12 var str1=‘00100‘; ? alert( Number(str1) );? //得到100 ? alert(parseInt(str1));? //得到64 ? 发现par...
分类:Web程序   时间:2014-12-19 12:24:34    阅读次数:153
【LeetCode】Fraction to Recurring Decimal【Solution】
【题目】 Given two integers representing the numerator and denominator of a fraction, return the fraction in string format. If the fractional part is repeating, enclose the repeating part in paren...
分类:其他好文   时间:2014-12-19 12:11:03    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!