摘要: typedef struct Point{ double x,y; bool operator<(const Point &other) const { return x<other.x; }}; 阅读全文
posted @ 2014-05-11 22:05 剑风云 阅读(425) 评论(0) 推荐(0)
摘要: MyBatisUtil.javaUserMapper.javapackage edu.hhxy.btais.util;import java.io.IOException;import java.io.InputStream;import org.apache.ibatis.io.Resources... 阅读全文
posted @ 2014-05-11 18:27 剑风云 阅读(396) 评论(0) 推荐(0)
摘要: 数据库脚本(注意测试时先add-->load-->update-->delete-->list)UserMapper版-- ---------------------------------------------------------- 主机: ... 阅读全文
posted @ 2014-05-11 18:16 剑风云 阅读(457) 评论(0) 推荐(0)
摘要: (mybatis注意各个文件的映射问题)用到的t_user数据库脚本:-- 导出 mybatis 的数据库结构CREATE DATABASE IF NOT EXISTS `mybatis` /*!40100 DEFAULT CHARACTER SET utf8 */;USE `mybatis`;--... 阅读全文
posted @ 2014-05-11 17:49 剑风云 阅读(282) 评论(0) 推荐(0)
摘要: 首先创建表:建表Sql文件-- 导出 mybatis 的数据库结构CREATE DATABASE IF NOT EXISTS `mybatis` /*!40100 DEFAULT CHARACTER SET utf8 */;USE `mybatis`;-- 导出 表 mybatis.t_user ... 阅读全文
posted @ 2014-05-11 13:03 剑风云 阅读(352) 评论(0) 推荐(0)
摘要: 5高阶基本技术(Tricky Basics)本章涵盖实际编程之中层次较高的一些 template基本知识,包括关键词 typename的另一种用途、将member functio(n 成员函数)和 nested clas(s 嵌套类别)定为templates、奇特的 template templat... 阅读全文
posted @ 2014-05-11 10:01 剑风云 阅读(323) 评论(0) 推荐(0)
摘要: /*N^N = 10^(N*log(N))中,由于 N #includeusing namespace std;double solve(double n){ double intpart,fractpart,t; //double modf (double, double*); 将... 阅读全文
posted @ 2014-05-10 20:31 剑风云 阅读(281) 评论(0) 推荐(0)
摘要: MakeCar.javapackage edu.hhxy;/* * 组装车 */public abstract class MakeCar { //组装车头 public abstract void makeHead(); //组装车身 public abstract... 阅读全文
posted @ 2014-05-10 17:21 剑风云 阅读(264) 评论(0) 推荐(0)
摘要: Nontype Template Parameters非类型模板参数对 function templates 和 class templates 而言,template parameters 并不一定非要是类型(types) 不可,它们也可以是常规的(一般的)数值。当你以类型(types)作为 te... 阅读全文
posted @ 2014-05-10 16:43 剑风云 阅读(255) 评论(0) 推荐(0)
摘要: 3.3 Class Templates 的特化( Specializations)你可以针对某些特殊的 template arguments,对一个 class template 进行「特化」。class templates的特化与 function template 的重载类似,使你得以针对某些特... 阅读全文
posted @ 2014-05-10 16:26 剑风云 阅读(219) 评论(0) 推荐(0)