码迷,mamicode.com
首页 >  
搜索关键字:cpp    ( 13186个结果
【Merge Sorted Array】cpp
题目:Given two sorted integer arraysnums1andnums2, mergenums2intonums1as one sorted array.Note:You may assume thatnums1has enough space (size that is gr...
分类:其他好文   时间:2015-05-18 16:12:27    阅读次数:87
【Merge Two Sorted Lists】cpp
题目:Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.代码:/**...
分类:其他好文   时间:2015-05-18 16:02:32    阅读次数:130
背景建模技术(五):视频捕获(VideoCapture)模块
本次对“视频捕获(VideoCapture)模块”做出分析,给出源代码和对应的程序流程框架。视频捕获模块的主要功能是设置视频或相机参数,并读取设置配置参数,最后进入帧处理模块的process进程,该模块的源码如下,请重点关注start()函数:[cpp]view plaincopyprint?#in...
分类:其他好文   时间:2015-05-18 14:40:00    阅读次数:135
背景建模技术(六):帧处理(FrameProcessor)模块
前面几篇文章简单介绍了BgsLibrary的入口函数、视频分析和视频捕获模块,本文将简单介绍帧处理模块,即对每一帧进行处理的函数,也就是真正调用背景建模算法的接口处。下面贴出源码供大家分析:[cpp]view plaincopyprint?#include"FrameProcessor.h"#inc...
分类:其他好文   时间:2015-05-18 14:39:35    阅读次数:267
背景建模技术(七):预处理(PreProcessor)模块
预处理(PreProcessor)模块是BgsLibrary中一个必选的模块,是真正进入背景建模算法的“预处理”过程,其主要功能包括‘去模糊’、‘获得灰度图’、'应用Canny算子‘等可选模块。下面给出源码:[cpp]view plaincopyprint?#include"PreProcessor...
分类:其他好文   时间:2015-05-18 14:38:43    阅读次数:171
【Sum Root to Leaf Numbers】cpp
题目:Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number.An example is the root-to-leaf path1->2->3which ...
分类:其他好文   时间:2015-05-18 12:45:37    阅读次数:100
【Binary Tree Maximum Path Sum】cpp
题目:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ...
分类:其他好文   时间:2015-05-18 12:41:10    阅读次数:113
第九周项目二-Time类中的运算符重载(续)
在Time类中的运算符重载基础上(1)定义对时间对象的自增和自减一目运算符(2)定义Time类中的>运算符重载,实现时间的输入输出,改造原程序中对运算结果显示方式,使程序读起来更自然。/* * Copyright (c) 2015,烟台大学计算机学院 * All right reserved. * 作者:赵嵩 * 文件:Demo.cpp * 完成时间:2015年05月17日 * 版本号:v1.0 ...
分类:其他好文   时间:2015-05-18 09:07:42    阅读次数:119
第九周项目5-方程也是类
设计一元一次方程类,求形如ax+b=0的方程的解。 例如:输入3x-8=0时,输出的方程的解为x=2.66667; 再如:输入5s+18=0时,输出的方程的解为s=-3.6; /* * Copyright (c) 2015,烟台大学计算机学院 * All right reserved. * 作者:赵嵩 * 文件:Demo.cpp * 完成时间:2015年05月17日 * 版本号:v1...
分类:其他好文   时间:2015-05-18 09:07:17    阅读次数:98
【Path Sum II】cpp
题目:Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsu...
分类:其他好文   时间:2015-05-17 23:29:44    阅读次数:153
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!