C++11中的初始化列表构造函数(Initialize_list Constructors)是将std::initializer_list作为第一个参数的构造函数,并且没有任何其他参数(或者其他参数具有默认值)。例如:
#include
#include //必须包含该头文件
#include
using namespace std;
class A
{
private:
vector m...
分类:
编程语言 时间:
2014-06-05 03:32:22
阅读次数:
287
【题目】
Given a non-negative number represented as an array of digits, plus one to the number.
The digits are stored such that the most significant digit is at the head of the list.
【题意】
给定一个非负整数,这个表示为一个数字数组。计算这个整数加1后的值。
【思路】
从低位到高位依次相加,注意处理进...
分类:
其他好文 时间:
2014-06-05 01:24:44
阅读次数:
250
查询rman备份信息常用指令
----登陆到rman
$rman target /
----以精简的格式查看备份信息
RMAN> list backup of database summary;
List of Backups
===============
Key TY LV S Device Type Completion Time#Pieces #Copies Co...
分类:
其他好文 时间:
2014-06-05 01:06:36
阅读次数:
383
一、CollectionAPI
集合是一系列对象的聚集(Collection)。集合在程序设计中是一种重要的数据接口。Java中提供了有关集合的类库称为CollectionAPI。
集合实际上是用一个对象代表一组对象,在集合中的每个对象称为一个元素。在集合中的各个元素的具体类型可以不同,但一般说来,它们都是由相同的类派生出来的(而这一点并不难做到,因为Java中的所有类...
分类:
编程语言 时间:
2014-06-04 21:48:38
阅读次数:
381
【题目】
Given a sorted linked list, delete all duplicates such that each element appear only once.
For example,
Given 1->1->2, return 1->2.
Given 1->1->2->3->3, return 1->2->3.
【题意】
给定一个已排序的链表,删除其中的重复元素
【思路】
维护两个指针prev和cur, cur指针负责扫描链表,prev指向cur的前一...
分类:
其他好文 时间:
2014-06-03 04:05:39
阅读次数:
231
【题目】
Given a sorted linked list, delete all nodes that have duplicate numbers, leaving only distinct numbers from the original list.
For example,
Given 1->2->3->3->4->4->5, return 1->2->5.
Given 1->1->1->2->3, return 2->3.
【题意】
给定一个有序链表,删出其中重复出现的值...
分类:
其他好文 时间:
2014-05-31 21:14:11
阅读次数:
333
1、消息接口namespace IBLL{ public interface IMsg { List
GetMsgList(); }}View Code2、消息A实现namespace BLLA.Abs{ /// /// 抽象工厂调用 /// ...
分类:
其他好文 时间:
2014-05-31 21:11:19
阅读次数:
296
1、消息产品接口namespace IBLL{ public interface IMsg {
List GetMsgList(); }}View Code2、消息A实现 public class Msg:IBLL.IMsg { public ...
分类:
其他好文 时间:
2014-05-31 21:07:59
阅读次数:
311
生成json格式的字符串。需要相关包 1 package
cn.itcast.controller; 2 3 import static org.junit.Assert.*; 4 5 import
java.util.ArrayList; 6 import java.util.List; 7 .....
分类:
Web程序 时间:
2014-05-31 19:27:44
阅读次数:
348
DropDownList list = this.findContol("aas") as
DropDownList;list.DataSource = new DataTable() -------------------------------
Control ctl = this.FindCo...
分类:
其他好文 时间:
2014-05-31 19:12:44
阅读次数:
171