码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
C++STL泛型编程基础知识讲解--------2015年2月3日
今天学习了C++STL泛型编程的基础知识,我对主要知识整理如下:STL提供三种类型的组件:容器,迭代器,算法。支持泛型程序设计标准。容器主要有两类:顺序容器和关联容器。顺序容器:vector,list,deque,string等都是一系列连续元素的集合。关联容器:set,multiset,map,m...
分类:编程语言   时间:2015-02-04 00:22:40    阅读次数:318
Excel数据导入SQL Server
基本有2种方案,都是无需安装Office的方案 Ole DB读取 + BulkCopy 获取Excel各个SheetName //连接串 string strConn = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=" + Path + ";...
分类:数据库   时间:2015-02-04 00:21:19    阅读次数:291
Struts2之通配符映射(降低配置量)
通过在配置文件中使用*取代具体的字符下面举例说明 1 StudentAction和TeacherAction package org.action; public class StudentAction { private String username; private String password; public String getUsername() { return...
分类:其他好文   时间:2015-02-03 23:08:39    阅读次数:254
【难】【数组】计算字符的相似度
题目:《编程之美》P223 string sub_string(const string &s, const int begin,const int end) { if (begin > end) return ""; return s.substr(begin, end); } int strings_distance(string s1, string s2) { if ...
分类:编程语言   时间:2015-02-03 23:07:31    阅读次数:235
LeetCode[Stack]: Simplify Path
Given an absolute path for a file (Unix-style), simplify it.  For example,  path = "/home/", => "/home"  path = "/a/./b/../../c/", => "/c" 这个题目比较简单,用很常规的方法解决即可,测试的时候遇到什么问题再解决就行了。我的C++代码如下: ...
分类:其他好文   时间:2015-02-03 23:06:58    阅读次数:233
C#根据网址生成静态页面
HoverTree开源项目中HoverTreeWeb.HVTPanel的Index.aspx文件是后台管理的首页。包含生成留言板首页,以及显示用户名,退出等功能。根据网址生成页面的方法:bool CreateHtmlFile(string url, string path){ //http://ke...
分类:Windows程序   时间:2015-02-03 22:55:59    阅读次数:235
String是基本的数据类型吗?
String不是基本的数据类型,是final修饰的java类,java中的基本类型一共有8个,它们分别为:1 字符类型:byte,char2 基本整型:short,int,long3 浮点型:float,double4 布尔类型:boolean此外需要说明 有的文章中吧void也算是一种基本的数据类...
分类:其他好文   时间:2015-02-03 22:54:29    阅读次数:181
String,StringBuffer和StringBuilder三者的讲解
对于java的学习者而言,无论是初学者,还是java大师,String对于大家而言,也绝对不会陌生。下面本人就从自己学习的角度大致分析一下String,StringBuffer和StringBuilder这三者的区别和联系。如有不足,欢迎补充说明~谢谢 1 String类 String类在...
分类:其他好文   时间:2015-02-03 22:52:41    阅读次数:231
php文件操作
1、file_get_contents获取文本或者网页的内容string file_get_contents ( string $filename [, bool $use_include_path = false [, resource $context [, int $offset = -1 [...
分类:Web程序   时间:2015-02-03 22:43:51    阅读次数:235
JavaWeb之JDBC分页/监听器(十六)
多表关联操作 1. 一对多(客户与订单表) # 一对多(客户与订单表) 0. C3P0工具类 1. 建domain类与之对应要建立相应的表结构 Customer表 private int id; private String name; private List orders = new Array...
分类:数据库   时间:2015-02-03 22:38:55    阅读次数:274
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!