条款55模板的模板参数
见一下stack适配器采用默认Deque的例子
template>
class Stack{
public:
~stack();
void push();
private:
Conts_;
};
这里,Stack的用户现在必须提供一个模板实参,表示元素的类型,还可以提供一个表示容器的类型(默认为deque),并且容器必须能够容...
分类:
编程语言 时间:
2014-06-03 05:00:39
阅读次数:
305
Java读取配置文件的方式-笔记
1 取当前启动目录下的配置文件
一般来讲启动java程序的时候,在启动的目录下会有配置文件
classLoader.getResource("").getFile() 会取到java当前启动项目的目录,然后指定对应的配置文件路径即可比如conf/conf.properties
//取当前启动目录的配置文件
String f...
分类:
编程语言 时间:
2014-06-03 04:03:35
阅读次数:
262
UI标签库专题一:JEECG智能开发平台
BaseTag(样式表和JS引入标签)
1.BaseTag(样式表和JS引入标签)
1.1. 示例
1.2. 参数
属性名
类型
描述
type
string
JS插件类型定义如果有...
分类:
Web程序 时间:
2014-06-03 00:58:23
阅读次数:
334
1、错误描述
freemarker基本数据类型
张三丰
123,456
Error on line 20, column 8 in type.ftl
Expecting a string, date or number here, Expression flag is instead...
分类:
其他好文 时间:
2014-06-03 00:51:06
阅读次数:
400
1、错误描述
freemarker.core.ParseException: Encountered "string" at line 21, column 21 in type.ftl.
Was expecting one of:
"}" ...
"." ...
"[" ...
"(" ...
"?" ...
"!" ...
......
分类:
其他好文 时间:
2014-06-02 23:10:09
阅读次数:
327
LoginCheck:
package com.beyole.util;
class LoginCheck {//编写登录验证类
private String userName;//用户名
private String password;//密码
public LoginCheck(String userName,String password)//复写构造方法
{
this.us...
分类:
编程语言 时间:
2014-06-02 22:42:04
阅读次数:
415
1、错误描述
五月 30, 2014 11:52:04 下午 freemarker.log.JDK14LoggerFactory$JDK14Logger error
严重: Template processing error: "Can't convert the date to string, because it is not known which parts of the date va...
分类:
其他好文 时间:
2014-06-02 22:33:40
阅读次数:
332
【题目】
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
Below is one possible representation of s1 = "great":
great
/ gr eat
/ \ / g r e at
/ ...
分类:
其他好文 时间:
2014-06-01 09:41:05
阅读次数:
196
前两天浩哥让我再把Coreseek的索引再做一次,因为需求那边有点变化,要把索引的公司名字显示出来,就在配置文件里面添加了sql_field_string:字符串字段.。
这个属性特别好用,因为它不仅可以当做属性过滤而且还可以可全文搜索,可返回原始文本信息。
然后写好文件,建立索引,建索引的时候出现了这么一个匪夷所思的问题Oops, indexer crashed!真当是莫名其妙。
有人找到...
分类:
其他好文 时间:
2014-06-01 09:03:11
阅读次数:
294