码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
sicily 1198 substring
sort排序,注意ba,b的情况,结果应该是bab而不是bba,只需要在cmp函数里判断b+ba和ba+b的大小即可! 1 #include 2 #include 3 #include 4 5 using namespace std; 6 7 string s[10]; 8 9 bool...
分类:其他好文   时间:2015-03-21 11:03:45    阅读次数:139
1.spring环境的搭建
1.app.config 3.persondao类namespace FirstSpringNetApp{ public class PersonDao { public override string ToString() { return "我是PersonDao"; } ...
分类:编程语言   时间:2015-03-21 11:03:42    阅读次数:169
2.自己搭建的一个简易的ioc容器
1.persondao类namespace MyselfIoC{ public class PersonDao { public override string ToString() { return "我是PersonDao"; } }}2.xml 工厂文件3.工厂ioc 构造函数实例化一个ioc...
分类:其他好文   时间:2015-03-21 11:03:30    阅读次数:108
java反射经典总结
1:通过反射解析这个类的构造函数public class person { public String name="jack"; private int password=123; private static int age; public person() { System.out.print....
分类:编程语言   时间:2015-03-21 11:01:41    阅读次数:180
C++学习笔记(十一):成员访问运算符(点运算和箭头运算)
成员访问运算符 点运算符“.”和箭头运算符“->”,都可以用于访问成员,其中点运算获取类对象的一个成员,箭头运算获取指针指向对象的成员。表达式ptr->men等价于(*ptr).mem:   string s = “hello”,  *p = &s; auto n = s.size();                        //获取string对象的成员 n = (*p).si...
分类:编程语言   时间:2015-03-21 09:55:06    阅读次数:234
JAVA学习笔记(四) - 循环语句
while循环/* * while循环 * 循环变量,可以控制循环次数。 */ public class Test { public static void main(String[] args) { int count = 5; while(count > 0) { System.out.println(...
分类:编程语言   时间:2015-03-21 09:48:33    阅读次数:188
Hibernate框架中,使用JDBC语法
/** * 调用存储过程 * * @param PRONAME * @return */ public CallableStatement citePro(final String PRONAME){ Session session = getCurrentSession(); CallableStatement pro = session.doReturningW...
分类:数据库   时间:2015-03-21 09:45:26    阅读次数:164
LeetCode – Refresh – Missing Ranges
1 class Solution { 2 public: 3 string getRange(int start, int end) { 4 ostringstream oss; 5 if (start == end) { 6 oss...
分类:其他好文   时间:2015-03-21 08:36:43    阅读次数:154
poj1159——回文,lcs
poj1159——回文,lcsPalindromeTime Limit:3000MSMemory Limit:65536KTotal Submissions:54621Accepted:18892DescriptionA palindrome is a symmetrical string, tha...
分类:其他好文   时间:2015-03-21 06:21:20    阅读次数:160
String与InputStream相互转换
1.String to InputStream String str = "String与InputStream相互转换"; InputStream in_nocode = new ByteArrayInputStream(str.getBytes()); InputStream in_withco...
分类:其他好文   时间:2015-03-20 23:32:42    阅读次数:124
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!