码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Hello world
今天买了一本C#从入门到精通,从今天开始学C#namespace ConsoleApplication1{ class Program { static void Main(string[] args) { ...
分类:其他好文   时间:2015-02-28 15:51:12    阅读次数:132
类初始化的时候就加载properties文件中的属性值
private static final String RULESUBMITSERVLETURL; private static final String CALLSUBMITSERVLETURL; static { Properties props = new Properties(); String fileName = "sunshineserver.properties"; ...
分类:其他好文   时间:2015-02-28 14:39:08    阅读次数:109
.Net下获取程序路径的方法
C# 获取路径string str1 =Process.GetCurrentProcess().MainModule.FileName;//获得当前执行的exe的文件名。string str2=Environment.CurrentDirectory;//获取和设置当前目录的完全限定路径。strin...
分类:Web程序   时间:2015-02-28 14:29:41    阅读次数:151
C++重载加号运算符实现两个结构体的相加
#include#includeusing namespace std;struct S{ int a, b; string str; S operator+(const S &others) { S s1; s1.a = this->a + others.a; s1.b = this->a ...
分类:编程语言   时间:2015-02-28 14:28:34    阅读次数:157
06 redis中set结构及命令详解
集合 set 相关命令集合的性质: 唯一性,无序性,确定性注: 在string和link的命令中,可以通过range 来访问string中的某几个字符或某几个元素但,因为集合的无序性,无法通过下标或范围来访问部分元素.因此想看元素,要么随机先一个,要么全选sadd key value1 value....
分类:其他好文   时间:2015-02-28 14:24:19    阅读次数:185
java .....equals
java .....equalsInteger,String equals比较的是内容对象比较的的是内存地址当参数obj引用的对象与当前对象为同一个对象时 true 反之是falseJDK类中有一些类覆盖了oject类的equals()方法,比较规则为:如果两个对象的类型一致,并且内容一致,则返回t...
分类:编程语言   时间:2015-02-28 14:22:51    阅读次数:147
csharp: read excel using Aspose.Cells
/// /// /// /// /// public static System.Data.DataTable ReadExcel(String strFileName) { Wor...
分类:Web程序   时间:2015-02-28 14:20:39    阅读次数:200
Groovy基础——MetaClass详解
一、拦截方法调用和参数获取 示例1: class MyClass{ ?def hello(){ ??‘invoked hello directly‘ ?} ?def invokeMethod(String name, Object args){ ??return "unknown method $name(${args.join(‘, ‘)})"...
分类:Web程序   时间:2015-02-28 13:13:05    阅读次数:177
字符串分割
1.利用sscaf处理固定长度与分隔符的字符串 #define RAW_STRING "aaa,bbb,ccc,ddd" char szBuf[4][8]= {0}; int? ret??= 0; ret = sscanf(RAW_STRING,"%[^,],%[^,],%[^,],%[^,]",&szBuf[0],&szBuf[1],&szBuf[2...
分类:其他好文   时间:2015-02-28 13:13:01    阅读次数:133
poj 1691
#include<iostream> #include<cstdio> #include<string> #include<cstring> #include<string.h> #include<algorithm> using?namespace?std; const?int?maxn?=?15; const?int?maxm?=?20; class?node{...
分类:其他好文   时间:2015-02-28 13:08:33    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!