摘要:
二分搜索思想:bool C(double x)可以得到长度为x的绳子//#define LOCAL#include#includeint const MAX_N=10005;int const MAX_M=100;double const INF=100000000;int N,K;double d... 阅读全文
摘要:
二分查找的一点思考二分查找算法实现#define LOCAL#include#include#includeint const MAX_N=21) { int mid=(ub+lb)/2; if(a[mid]>=k) { ub=m... 阅读全文
摘要:
typedef struct Point{ double x,y; bool operator<(const Point &other) const { return x<other.x; }}; 阅读全文
摘要:
MyBatisUtil.javaUserMapper.javapackage edu.hhxy.btais.util;import java.io.IOException;import java.io.InputStream;import org.apache.ibatis.io.Resources... 阅读全文
摘要:
数据库脚本(注意测试时先add-->load-->update-->delete-->list)UserMapper版-- ---------------------------------------------------------- 主机: ... 阅读全文
摘要:
(mybatis注意各个文件的映射问题)用到的t_user数据库脚本:-- 导出 mybatis 的数据库结构CREATE DATABASE IF NOT EXISTS `mybatis` /*!40100 DEFAULT CHARACTER SET utf8 */;USE `mybatis`;--... 阅读全文
摘要:
首先创建表:建表Sql文件-- 导出 mybatis 的数据库结构CREATE DATABASE IF NOT EXISTS `mybatis` /*!40100 DEFAULT CHARACTER SET utf8 */;USE `mybatis`;-- 导出 表 mybatis.t_user ... 阅读全文
摘要:
5高阶基本技术(Tricky Basics)本章涵盖实际编程之中层次较高的一些 template基本知识,包括关键词 typename的另一种用途、将member functio(n 成员函数)和 nested clas(s 嵌套类别)定为templates、奇特的 template templat... 阅读全文
摘要:
/*N^N = 10^(N*log(N))中,由于 N #includeusing namespace std;double solve(double n){ double intpart,fractpart,t; //double modf (double, double*); 将... 阅读全文
摘要:
MakeCar.javapackage edu.hhxy;/* * 组装车 */public abstract class MakeCar { //组装车头 public abstract void makeHead(); //组装车身 public abstract... 阅读全文