首页 > 其他
泛型2
泛型类的继承——以泛型类为父类、泛型类的继承——以非泛型类为父类、强制类型转换
分类:其他   时间:2015-01-21 22:04:00    收藏:0  评论:0  赞:0  阅读:319
ostringstream的使用方法
ostringstream的使用方法【本文来自】http://www.builder.com.cn/2003/0304/83250.shtmlhttp://www.cppblog.com/alantop/archive/2007/07/10/27823.html使用stringstream对象简化类...
分类:其他   时间:2015-01-21 22:03:45    收藏:0  评论:0  赞:0  阅读:313
【转】实现查询回收站信息以及清空回收站
原帖链接http://outofmemory.cn/code-snippet/9194/achieve-search-recover-office-information-yiji-qingkong-recover-office#include #include #include //SHEmpt....
分类:其他   时间:2015-01-21 22:03:24    收藏:0  评论:0  赞:0  阅读:310
屏蔽弹出对话框
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window...
分类:其他   时间:2015-01-21 22:02:44    收藏:0  评论:0  赞:0  阅读:356
XE7 update1
分类:其他   时间:2015-01-21 22:02:24    收藏:0  评论:0  赞:0  阅读:262
单链表 头指针与头结点
头指针: 头指针是指链表指向第一个结点的指针,若链表有头结点,则是指向头结点的指针。 头指针具有标识作用,所以常用头指针冠以链表的名字。 无论链表是否为空,头指针均不为空。 头指针是链表的必要元素。头结点: 它是为了操作的统一和方便设立的,放在第一个元素的结点之前,其数据域一般无意义(但也...
分类:其他   时间:2015-01-21 22:01:04    收藏:0  评论:0  赞:0  阅读:308
棋盘覆盖问题
在一个2^k * 2^k个方格组成的棋盘中,有一个方格与其它的不同,若使用以下四种L型骨牌覆盖除这个特殊方格的其它方格,如何覆盖。 四各L型骨牌如下图1 图1棋盘中的特殊方格如图2 图2 实现的基本原理是将2^k * 2^k的棋盘分成四块2^(k - 1) * 2^(k - 1)的子棋盘,特殊方格一...
分类:其他   时间:2015-01-21 22:00:55    收藏:0  评论:0  赞:0  阅读:301
OpenCV学习笔记(四十)——再谈OpenCV数据结构Mat详解
原文:http://blog.csdn.net/yang_xian521/article/details/7107786我记得开始接触OpenCV就是因为一个算法里面需要2维动态数组,那时候看core这部分也算是走马观花吧,随着使用的增多,对Mat这个结构越来越喜爱,也觉得有必要温故而知新,于是这次...
分类:其他   时间:2015-01-21 22:00:34    收藏:0  评论:0  赞:0  阅读:306
Centos6.5安装
前奏:CentOS 6.5下载地址http://mirror.centos.org/centos/6.5/isos/x86_64/CentOS-6.5-x86_64-bin-DVD1to2.torrent 1.Install or upgrade an existing system 安装或升级现有...
分类:其他   时间:2015-01-21 21:59:54    收藏:0  评论:0  赞:0  阅读:243
boost::any的一般使用方法
01.#include 02.#include 03.#include 04.05.typedef std::list list_any;06.07.//关键部分:能够存放随意类型的对象08.void fill_list(list_any& la)09.{10. la.push_back(1000)...
分类:其他   时间:2015-01-21 21:58:34    收藏:0  评论:0  赞:0  阅读:304
zsc_寒假训练 7
DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words an...
分类:其他   时间:2015-01-21 21:57:55    收藏:0  评论:0  赞:0  阅读:334
[Everyday Mathematics]20150222
设 $$\bex a_0=1,\quad a_1=\frac{1}{2},\quad a_{n+1}=\frac{na_n^2}{1+(n+1)a_n}\ (n\geq 1). \eex$$ 试证: $\dps{\sum_{k=0}^\infty\frac{a_{k+1}}{a_k}}$ 收敛, 并...
分类:其他   时间:2015-01-21 21:57:44    收藏:0  评论:0  赞:0  阅读:226
解题报告 HDU1159 Common Subsequence
Common SubsequenceTime Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionA subsequence of a given sequence is the given sequence...
分类:其他   时间:2015-01-21 21:57:14    收藏:0  评论:0  赞:0  阅读:269
hdu1754(线段树)
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=1754线段树功能:update:单点替换 query:区间最值模板裸题。。。#pragma comment(linker,"/STACK:102400000,102400000")#include #in...
分类:其他   时间:2015-01-21 21:57:04    收藏:0  评论:0  赞:0  阅读:249
自己动手写客户端UI库——创建第一个控件
在上一篇文章中我们主要讲了C#如何和JS通信,这一篇文章中,我们将创建一个最基础的Button控件WUI库中控件的继承机制我们先解释最简单的继承机制,以后WUI库的继承机制会比这个复杂的多第一:PanelMain类我们在上一篇中说了,PanelMain是一个特殊的Panel,每一个用户程序都应该自己...
分类:其他   时间:2015-01-21 21:56:34    收藏:0  评论:0  赞:0  阅读:299
zTree获取子节点
1 var ids=[];2 ids=getChildren(ids, treeNode);//TreeNode是选中节点,ids是子节点id数组,格式:123,223,4,551.获取直接子节点的id//返回值包含选中节点的id,即ids[0]function getChildren(ids, t...
分类:其他   时间:2015-01-21 21:56:04    收藏:0  评论:0  赞:1  阅读:3307
Median of Two Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be ...
分类:其他   时间:2015-01-21 21:55:54    收藏:0  评论:0  赞:0  阅读:302
LeetCode-121 Best Time to Buy and Sell Stock
Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie...
分类:其他   时间:2015-01-21 21:55:34    收藏:0  评论:0  赞:0  阅读:250
Object-c的类可以多重继承么?可以实现多个接口么?如何实现?
Object-c的类可以多重继承么?可以实现多个接口么?Object-c的类不可以多重继承;可以实现多个接口,通过实现多个接口可以完成C++的多重继承;虽然OC在语法上禁止类使用多继承,但是在协议的遵守上却允许使用多继承。所以可以用协议来实现多继承。但是协议只能提供接口,而没有提供实现方式,如果只是...
分类:其他   时间:2015-01-21 21:55:04    收藏:0  评论:0  赞:0  阅读:1748
perl学习之裸字
use strict包含3个部分。其中之一(use strict "subs")负责禁止乱用的裸字。这是什么意思呢?如果没有这个限制,下面的代码也可以打印出"hello"。my $x = hello;print "$x\n"; # hello这样使用不符合我们平常把字符串放在引号里的习惯,但是...
分类:其他   时间:2015-01-21 21:54:54    收藏:0  评论:0  赞:0  阅读:268
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!