现在位置: 首页 > matrices发表的所有文章
  • 09月
  • 30日
综合 ⁄ 共 1975字 评论关闭
In MATLAB, it is easy to plot multiple graph in single figure. we use only one command to do this: subplot(2,2,1); imshow(img); However, as far as I know, there is no inbuilt support to display more than one image in OpenCV. There are two major directions on solving this problem. One is to join multiple images into one Single Big image, the other is to use a third-party library to compensate the deficiency. 1. Join multiple images into one Single Big image 1.1 set the ROIs of a Single......
阅读全文
  • 06月
  • 10日
综合 ⁄ 共 8685字 评论关闭
一、使浏览器不缓存页面的过滤器    import javax.servlet.*;    import javax.servlet.http.HttpServletResponse;    import java.io.IOException;       /** * 用于的使 Browser 不缓存页面的过滤器 */   public class ForceNoCacheFilter implements Filter {       public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException    {        ((HttpServletResponse) response).setHeader("Cache-Control","no-cache");        ((Http......
阅读全文
  • 05月
  • 08日
综合 ⁄ 共 14字 评论关闭
【专治不明觉厉】之“大数据”
阅读全文
  • 05月
  • 19日
综合 ⁄ 共 7050字 评论关闭
算法是一个程序和软件的灵魂,作为一名优秀的程序员,只有对一些基础的算法有着全面的掌握,才会在设计程序和编写代码的过程中显得得心应手。本文是近百个C语言算法系列的第二篇,包括了经典的Fibonacci数列、简易计算器、回文检查、质数检查等算法。也许他们能在你的毕业设计或者面试中派上用场。 1、计算Fibonacci数列 Fibonacci数列又称斐波那契数列,又称黄金分割数列,指的是这样一个数列:1、1、2、3、5、8、13、21。 C语言实现的代码如下: /* Displaying Fibonacci sequence up to nth term where n is entered by use......
阅读全文
  • 05月
  • 01日
综合 ⁄ 共 1157字 评论关闭
首先要准备的jar: asm-2.2.3.jar  struts2-jasperreports-plugin-2.1.8.1.jar  jasperreports-3.7.1  (注意,这个版本要和ireport的版本一样)  commons-digester-1.7.jar iText-2.1.7.jar  iTextAsian.jar(用来解决报表的中文问题)  iText-rtf-2.1.7.jar  poi-3.6.jar groovy-all-1.7.5.jar   一定要防止包的冲突,所以把一些低版本的包删掉   一 ,首先用ireport生成一个 .jaspe文件   二,将.jasper文件加入到工程下面   三,在action中 @Controller public class ReportAction extends ActionSupport{ private List<E......
阅读全文
  • 04月
  • 17日
综合 ⁄ 共 3514字 评论关闭
UNIX世界的软件开发大多都是协作式的,因此,Patch(补丁)是一个相当重要的东西,因为几乎所有的大型UNIX项目的普通贡献者,都是通过 Patch来提交代码的。作为最重要的开源项目之一,Linux,也是这样的。普通开发者从软件仓库clone下代码,然后写入代码,做一个Patch, 最后用E-mail发给Linux Kernel的维护者就好了。Git最初作为Linux的版本控制工具,提供了透明、完整、稳定的Patch功能。 我们先介绍一下Patch是什么。如果一个软件有了新版本,我们可以完整地下载新版本的代码进行编译安装。然而,像Linux Kernel这样的大型项目......
阅读全文
  • 04月
  • 11日
综合 ⁄ 共 6332字 评论关闭
       一直都想写些关于日本的什么,想把自己看到的,听到的,想到的,感受到的东西和大家分享。但是都苦于没有空闲,今天整理整理思绪,希望能把自己想说的东西表达清楚。让大家能想到些过去没想到过的东西,那我就达到目的了。        我生长在东北的哈尔滨,虽然从小唱着“大刀向鬼 子的头砍去……”,听着历史老师很愤恨的叫日本人“倭寇”、“鬼子”,看着诸如731部队之类的报道和展览,但这并不影响我儿时对日本的看法,记得小的时候,同学录上“最向往的地方”一栏,我填的都是日本。        那个时候觉得日本的动画片很好看,日本的......
阅读全文
//Take the lead in the bidirectional circular linked list (variable-length structure) #include <stdio.h> #include <stdlib.h> #include <string.h> #include "list.h" #define NAMESIZE 24 typedef struct stuinfo{  int id;  char name[NAMESIZE];  int math; }DATA; static void print_s(const void *data) // data 接收地址是p->data {  const DATA *stup = data;   // 把接受到的数据放置到结构体中。  printf("%d %s %d\n",    stup->id,    stup->name,    stup->math); } static int......
阅读全文
  • 02月
  • 17日
综合 ⁄ 共 763字 评论关闭
1 package test; 2 3 import java.awt.GridLayout; 4 import java.awt.LayoutManager; 5 //import java.util.EmptyStackException; 6 7 import javax.swing.JFrame; 8 import javax.swing.JLabel; 9 import javax.swing.JScrollPane;10 import javax.swing.JTextArea;11 12 public class test {13 public static void main(String[] args) {14 JFrame f = new JFrame("Welcome To Earth!");15 JTextArea jt = new JTextArea(3, 20);16 jt.setLineWrap(true);// 如果内容过长。自动换行17 18 ......
阅读全文
  • 02月
  • 06日
综合 ⁄ 共 5817字 评论关闭
单行函数和多行函数示意图:   单行函数分为五种类型:字符函数、数值函数、日期函数、转换函数、通用函数 单行函数: [sql] view plaincopy --大小写控制函数   select lower('Hello World') 转小写, upper('Hello World') 转大写 from dual;   --initcap: 首字母大写   select initcap('hello world') 首字符大写 from dual;      --字符控制函数   -- concat: 字符连接函数, 等同于  ||   select concat('Hello',' World') from dual;   --substr:求母串中的某个子串   select substr('Hello World',3) from dual;   sel......
阅读全文
  • 12月
  • 14日
综合 ⁄ 共 2181字 评论关闭
   用C语言编写程序的时候,我们经常会遇到这样一种情况:希望在头文件中定义一个全局变量,然后包含到两个不同的c文件中,希望这个全局变量能在两个文件中共用。   举例说明:项目文件夹project下有main.c、common.c和common.h三个文件,其中common.h文件分别#include在main.c和common.c文件中。现在希望声明一个字符型变量key,在main.c和common.c中公用。   有人想,既然是想两个文件都用,那就在common.h中声明一个unsigned char key,然后由于包含关系,在main.c和common.c中都是可见的,所以就能共用了。       想起......
阅读全文
  • 12月
  • 13日
综合 ⁄ 共 833字 评论关闭
1460: Kastenlauf Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 90 Solved: 28 [Submit][Status][Web Board] Description Input Output Sample Input 2 2 0 0 1000 0 1000 1000 2000 1000 2 0 0 1000 0 2000 1000 2000 2000 Sample Output happy sad 题意:每走50米喝一次,身上带最多只够喝20次,只要能走到商店就补足到20次。 现给n+2个点,起点 ,n个商店 和终点。 #include<stdio.h> #include<queue> #include<iostream> using namespace std; typedef struct nnn { int x,y; }NODE; i......
阅读全文