store ciass已破坏storekit什么意思思

spring定时任务之quartz - 开门见山 - ITeye技术网站
在Spring中,使用JDK的Timer类库来做任务调度功能不是很方便,关键它不可以象cron服务那样可以指定具体年、月、日、时和分的时间。你只能将时间通过换算成微秒后传给它。如任务是每天执行一次,则需要在spring中如下配置:
&bean id="scheduledTask" class= "org.springframework.scheduling.timer.ScheduledTimerTask"&
&!--程序启动后开始执行任务的延迟时间 --&
&property name="delay" value="0" /&
&!--每隔一天【一天=24×60×60×1000微秒】执行一次--&
&property name="period" value="" /&
&!--业务统计报表bean --&
&property name="timerTask" ref="businessReport" /&
其中period就是一天的微秒数。如果每月1日运行一次,那就复杂了,不知如何配置。因为月份有大、小月之分,每月的微秒数都不一样。
而Quartz类库不但有着上述JDK的Timer类库类似的配置,更重要的,它还有着类似于unix的cron服务的配置。因此,在迁移中我们采用了Quartz类库的接口。
具体的步骤如下:
1 编写业务类,该类继承了org.quartz.Job,主要的逻辑在execute方法中编写
2 配置spring的applicationContext.xml文件
2.1 配置任务JobDetailBean
2.2配置触发器 CronTriggerBean
2.3配置调度器
SchedulerFactoryBean
3 所需要的jar包:
spring.jar,quartz.jar,commons-logging-1.0.4.jar,commons-dbcp-1.2.2.jar,commons-pool-1.3.jar
4 把quartz.properties放到类路径下
以下为一个demo
import java.util.D
import org.quartz.JobExecutionC
import org.quartz.JobExecutionE
public class BusinessReport implements org.quartz.Job{
public void perform(){ //执行报表统计入口函数
//业务逻辑
System.out.println("开始执行报表的业务逻辑了----现在的时间是--"+new Date());
public void execute(JobExecutionContext arg0) throws JobExecutionException {
perform();
applicationContext.xml文件
&?xml version="1.0" encoding="UTF-8"?&
&!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"&
&!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" ":/spring-beans.dtd"&
&bean id="businessReport" class="task.BusinessReport" /&
&bean name="reportTask"
class="org.springframework.scheduling.quartz.JobDetailBean"&
&property name="jobClass" value="task.BusinessReport" /&
&!-- 触发器 --&
&bean id="cronTrigger"
class="org.springframework.scheduling.quartz.CronTriggerBean"&
&!-- 指向我们的任务 --&
&property name="jobDetail" ref="reportTask" /&
每天下午16点50分到55分,每分钟运行一次 --&
&property name="cronExpression" value="0 50-55 16 * * ?" /&
&!-- 调度器
class="org.springframework.scheduling.quartz.SchedulerFactoryBean"&
&property name="triggers"&
触发器列表 --&
&ref bean="cronTrigger" /&
&/property&
&property name="configLocation" value="classpath:quartz.properties" /&
三 quartz.properties文件的内容(默认放在类路径下)
#============================================================================
# Configure Main Scheduler Properties
#============================================================================
org.quartz.scheduler.instanceName = DefaultQuartzScheduler
org.quartz.scheduler.instanceId = AUTO
org.quartz.scheduler.rmi.export = false
org.quartz.scheduler.rmi.proxy = false
org.quartz.scheduler.wrapJobExecutionInUserTransaction = false
#============================================================================
# Configure ThreadPool
#============================================================================
#org.quartz.threadPool.class = org.quartz.simpl.SimpleThreadPool
org.quartz.threadPool.threadCount = 10
org.quartz.threadPool.threadPriority = 5
#org.quartz.threadPool.threadsInheritContextClassLoaderOfInitializingThread = true
#============================================================================
# Configure JobStore
#============================================================================
#org.quartz.jobStore.class = org.quartz.impl.jdbcjobstore.JobStoreTX
#org.quartz.jobStore.driverDelegateClass = org.quartz.impl.jdbcjobstore.oracle.OracleDelegate
org.quartz.jobStore.misfireThreshold = 60000
#org.quartz.jobStore.useProperties = false
#org.quartz.jobStore.tablePrefix = QRTZ_
#org.quartz.jobStore.dataSource = myDS
#org.quartz.jobStore.isClustered = true
#org.quartz.jobStore.clusterCheckinInterval = 15000
#============================================================================
# Configure DataSource
#============================================================================
org.quartz.dataSource.myDS.driver = com.mysql.jdbc.Driver
org.quartz.dataSource.myDS.URL = jdbc:mysql://localhost/test
org.quartz.dataSource.myDS.user = root
org.quartz.dataSource.myDS.password = root
org.quartz.dataSource.myDS.maxConnections = 10
附:cronExpression表达式解释:
0 0 12 * * ?---------------在每天中午12:00触发
0 15 10 ? * *---------------每天上午10:15 触发
0 15 10 * * ?---------------每天上午10:15 触发
0 15 10 * * ? *---------------每天上午10:15 触发
0 15 10 * * ? 2005---------------在2005年中的每天上午10:15 触发
0 * 14 * * ?---------------每天在下午2:00至2:59之间每分钟触发一次
0 0/5 14 * * ?---------------每天在下午2:00至2:59之间每5分钟触发一次
0 0/5 14,18 * * ?---------------每天在下午2:00至2:59和6:00至6:59之间的每5分钟触发一次
0 0-5 14 * * ?---------------每天在下午2:00至2:05之间每分钟触发一次
0 10,44 14 ? 3 WED---------------每三月份的星期三在下午2:00和2:44时触发
0 15 10 ? * MON-FRI---------------从星期一至星期五的每天上午10:15触发
0 15 10 15 * ?---------------在每个月的每15天的上午10:15触发
0 15 10 L * ?---------------在每个月的最后一天的上午10:15触发
0 15 10 ? * 6L---------------在每个月的最后一个星期五的上午10:15触发
0 15 10 ? * 6L ---------------在, 2004 and 2005年的每个月的最后一个星期五的上午10:15触发
0 15 10 ? * 6#3---------------在每个月的第三个星期五的上午10:15触发
0 0 12 1/5 * ?---------------从每月的第一天起每过5天的中午12:00时触发
0 11 11 11 11 ?---------------在每个11月11日的上午11:11时触发.-
浏览 49750
引用引用引用引用引用引用引用引用[b][b]10:[/b][b][/b][b][/b][b][/b][b][/b][b][/b][b][/b][u][/u][u][/u][u][/u][u][/u][u][/u][u][/u][u][/u][u][/u][u][/u][u][/u][u][/u][u][/u][/b]
qinjingkai
浏览: 151762 次
来自: 广州
jinbridge 写道你好,我问一下,你的这个类继承以后怎么 ...
你好,我问一下,你的这个类继承以后怎么把它编译到原来的包中
给新手写个全点的吧 ...
&DIV class=quote_title&引用 ...音节划分:work?ing
高频词,一定要记住哦!
['w?:rk??]
(涉及)工作的;
(人)有工作的;
(时间)用于工作上的;
(想法等)可作为基础的
(使)工作( work的现在分词);
(使)运作;
(使)产生效果
过去分词:
现在分词:
第三人称单数:
大家都在背:
1. She spent a period of time working with people dying of cancer.
她有一段时间曾帮助垂危的癌症患者。
来自柯林斯例句
2. Working with Ford closely, I fell in love with the cinema.
与福特的密切合作开始令我爱上了电影。
来自柯林斯例句
3. They've been living and working peacefully with members of various ethnic groups.
他们和不同民族的人们一起和睦地生活和工作。
来自柯林斯例句
4. In working with others, you find out more about yourself.
在与别人一起工作的过程中,你会进一步认识你自己。
来自柯林斯例句
5. They suffered long hours, unsafe working conditions and skimpy pay.
他们在不安全的工作环境下长时间辛苦劳作,却只有微薄的工资。
来自柯林斯例句
有工作的;有职业的 Working people have jobs which they are paid to do.&
【搭配模式】:ADJ n
Like working women anywhere, Asian women are buying convenience foods.
像其他地方的职业女性一样,亚洲女性也购买方便食品。
从事普通工作的 Working people are ordinary people who do not have professional or very highly paid jobs.&
【搭配模式】:ADJ n
The needs and opinions of ordinary working people were ignored...
普通劳动者的需求和意见遭到忽视。
One or two, in blue suits, might have been bank officials. Others were clearly working men.
有一两个穿蓝色西装的人可能是银行职员,其他的显然都是普通工人。
上班时间的;工作时间的 A working day or week is the amount of time during a normal day or week which you spend doing your job.&
【搭配模式】:ADJ n
【语域标签】:mainly BRIT 主英
For doctors the working day often has no end...
医生常常没有下班的时候。
Automation would bring a shorter, more flexible working week.
自动化会使工作周缩短,也更为灵活。
in AM, usually use 美国英语通常用 workday, work week
工作日的;上班的 A working day is a day on which people go to work.&
【搭配模式】:ADJ n
【语域标签】:mainly BRIT 主英
The full effect will not be apparent until Tuesday, the first working day after the three day holiday weekend.
周二是周末3天假期后的第一个工作日,到那时效果才会完全显现出来。
in AM, usually use 美国英语通常用 workday
(人生阶段)工作的,处于就业年龄的 Your working life is the period of your life in which you have a job or are of a suitable age to have a job.&
【搭配模式】:ADJ n
He started his working life as a truck driver.
他的工作生涯是从当卡车司机开始的。
(某一地区的人口)就业的,处于就业年龄的 The working population of an area consists of all the people in that area who have a job or who are of a suitable age to have a job.&
【搭配模式】:ADJ n
Almost 13 per cent of the working population is already unemployed.
就业人口中有将近13%已失业。
(条件或常规做法)工作的,工作上的 Working conditions or practices are ones which you have in your job.&
【搭配模式】:ADJ n
The strikers are demanding higher pay and better working conditions.
罢工者要求加薪并改善工作环境。
(衣服)工作时穿的 Working clothes are designed for doing work in, and are intended to be practical rather than attractive.&
【搭配模式】:ADJ n
(关系)工作上的,同事间的 A working relationship is the relationship you have with someone when you work with them.&
【搭配模式】:ADJ n
A working relationship turned into a very close friendship...
同事关系变成了非常亲密的友谊。
The vice-president seems to have a good working relationship with the president.
副总统似乎与总统有着良好的工作关系。
(农场或企业)经营性的,营利性的 A working farm or business exists to do normal work and make a profit, and not only for tourists or as someone's hobby.&
【搭配模式】:ADJ n
(机器零部件)能运转的,用于操作的 The working parts of a machine are the parts which move and operate the machine, in contrast to the outer case or container in which they are enclosed.&
【搭配模式】:ADJ n
(模型)活动的,可操作的 A working model is one that has parts that move.&
【搭配模式】:ADJ n
(知识)够用的;(多数票)有效的 A working knowledge or majority is not very great, but is enough to be useful.&
【搭配模式】:ADJ n
This book was designed in order to provide a working knowledge of finance and accounts...
本书旨在提供金融和会计方面的实用知识。
Neither candidate won a working majority.
两位候选人都没有赢得有效的多数票。
(题目或定义)暂用的,暂定的 A working title or definition is one which you use when starting to make or do something, but which you are likely to change or improve.&
【搭配模式】:ADJ n
His working title for the script was 'Trust the People'.
他给这个剧本暂定的标题是《相信人民》。
(设备、组织或系统的)工作方式,运行方式 The workings of a piece of equipment, an organization, or a system are the ways in which it operates and the processes which are involved in it.&
【搭配模式】:usu N of n
Neural networks are computer systems which mimic the workings of the brain...
神经网络是模拟大脑工作方式的计算机系统。
The bill would give people the right to much more information about the workings of government.
该法案将赋予人们了解更多有关政府运作方面信息的权利。
矿坑;巷道 You can use workings to refer to deep tunnels or holes which have been dug in the ground in order to remove coal, metal, or stone.&
...housing which was built above old mine workings.
修建在老矿坑上的房屋
in working order→see:
1. (涉及)工作的
a complaint about working conditions
对工作条件的不满
a constructive dialogue on pay and working conditions
有关工资以及工作条件的建设性对话
A comfortable working environment will increase productivity.
舒适的工作环境能提高生产效率。
2. (人)有工作的,劳动的;劳力的
3. (时间)用于工作上的
My working hours are(from)9 to 5.
我的工作时间是(从)9点到5点.
4. (想法等)可作为基础的;有效用的,起作用的
5. 非常活跃;过于兴奋
There was nothing to worry about. It was just her imagination working overtime.
不用担心。这只是她在疯狂幻想而已。
6. 具备足够使用某物的知识;会使用
I speak good French and I have a working knowledge of Italian and Spanish.
我不但法语说得好,而且还粗通意大利语和西班牙语。
I’ve used this software a bit so I do have a working knowledge of it.
我曾用过这种软件,所以有这方面的使用知识。
7. (机器)状况良好;运转正常
For Sale: Fridge in good working order, £50.
出售: 冰箱, 运行正常,售价50英镑。
8. (议会票数)足够多数的
The Government has a working majority
政府(在议会中)掌握足够的多数(支持票)。
1. a mine or quarry that is being or has been worked
1. actively
"the working population"
"the ratio of working men to unemployed"
"a working mother"
"robots can be on the job day and night"
2. adequa especially sufficient in strength or numbers to
"the party has a working majority in the House"
"a working knowledge of Spanish"
3. adopted as a temporary ba
"a working draft"
"a working hypothesis"
4. (of e.g. a machine) performing or c
"in running (or working) order"
"a functional set of brakes"
5. serving to permit or facilitate furt
"discussed the working draft of a peace treaty"
"they need working agreements with their neighbor states on interstate projects"
秘鲁领事馆 ... 学生( Student) 工作( Work) 移民( Immigrant).
- 基于84848个网页
0){var rand = parseInt(Math.random() * (000)+100000);top.location.href='/'+encodeURIComponent(document.getElementById('s').value.trim().replace( / /g, '_'))+'?renovate='+}else{top.location.href='/'+encodeURIComponent(document.getElementById('s').value.trim().replace( / /g, '_'));};}" action="/">
查过的词自动加入生词本
Tip:此功能设置只能在登录状态下生效
需要改进的内容:
单词大小写
其他(请在下面补充描述)
错误描述:
您还可在这里补充说明下 O(∩_∩)O~
方便的话,请您留下一种联系方式,便于问题的解决:标准模板库(STL)把他的类组织为3种种类:顺序容器、适配器容器和关联容器。
4.1 标准模板库包含10种容器类。根据元素的次序和访问数据的不同操作类型,标准模板库将这些容器进行分类。STL容器类的3个种类为:顺序容器、适配器容器和关联容器。
顺序容器按照线性次序位置存储数据。
关联容器按键存储元素。程序通过键访问关联容器中的元素,这些键可能与元素在容器中的位置无关。
适配器包含另一个容器作为其基本存储结构。
顺序容器:向量,双端队列,表
适配器容器:栈,队列,优先级队列
关联容器:集合,多重集   、  映射,多重映射
向量容器:向量是由数组推广而来的。她存储具有相同数据类型的一组元素。与数组一样的是她允许使用范围0~n-1内的下标访问其元素,其中n为向量大小。然而与数组不同的是,向量中的数据集可以在序列尾部动态增长或收缩。在向量中间位置的插入和删除的操作效率不高。
当程序需要动态序列和通过元素位置直接访问元素时,可选择向量作为数据结构。
表容器:表是按位置存储元素的数据结构。表中 的每项都有一个数值和一个内存地址(指针),内存地址标识表中的下一项。为了访问表中的特定的数据值,必须从表中第一个位置(表头)开始,随着指针从一个元素到下一个元素,直到找到药找的数据值。因此,表不是直接访问结构。
表容器的特点是在任意位置都可以有效地添加和删除数据项。
栈和队列容器:栈和队列都是对元素进入和离开序列方式进行限制的存储结构。栈仅允许对序列的一端访问,这一端为顶部。队列是仅允许访问列头和尾的容器。数据项从队尾进入,从队首离开。
优先级队列容器:优先级队列是一种具有受限访问操作的存储结构,这些操作与栈,队列的操作类似。元素可以以任意顺序进入优先级队列。一旦元素在优先级队列容器中,删除操作将删除最大(最小)的数值。
集合容器:集合是唯一数值的集合,这些唯一的数值称为键或集合成员。
映射容器:映射容器是实现键-值关系的存储结构。映射不按位置存储元素;但是他允许使用键作为下标。程序员可以使用键访问映射中的元素,就像是访问向量或数组元素一样。
4.2 模板类
把模板机制用于容器类,STL在其每个容器类的声明中都是这样做的。这些容器类可以存储整形,字符型,和其他类型。
4.2.1 构造模板类
类的模板版本在类声明之后有一个模板参数表。数据成员可以把模板类型用作对象类型,成员函数可以使用模板类型,成员函数可以使用模板类型作为其参数和返回类型。下面是基于模板的类的一半结构:
template &typename T&
class  templateClass
templateClass(const T& item);             //构造函数,带有类型T参数
T f();  //成员函数返回一个类型T数值
void  g(const T&  item);   // 成员函数有一个类型T参数
T dataValue ;
。。。。。。。。。。。。。。。。。
模板参数表是声明中的第一项。所有的数据成员和函数都可以引用模板类型T。通常,模板中的参数通过常量引用传递。堆与程序员自定义的类型,这就避免了按值调用时参数传递所需要的复制,而且这种做法也适合用于C++的基本类型。
对于模板类,在使用某个具体类型引用类时,必须包括类名和角括号中的模板类型T。
程序员可以把模板类中的成员函数作为嵌入代码或类主体外的外部函数来实现。嵌入代码的通常格式是把函数体放在类主体中。实现模板类成员函数的外部函数本身就是模板函数其声明必须包含一个模板参数表。为了把函数与类联系起来,函数头把类作用域运算符表达式 className&T&::与函数名放在一起。
模板自由函数必须有一个类型T的参数。因为类型T是类作用域运算符表达式的一部分,所以,成员函数不受这种限制。
注意,模板语法主要用于模板头文件和函数头文件,对函数体中的代码影响不大。
例如:定义一个模板类store,源代码如下:  (一般的模板类的结构)
#ifndef STORE_CLASS
#define STORE_CLASS
#include &iostream&
template &typename T&
class store
    public:
        store(const T& item = T());       // constructor
        // access and update functions
        T getValue()              // return value
        void setValue(const T& item);     // update value
        // overloaded operator && as a friend
        friend ostream& operator&& (ostream& ostr, const store&T&& obj)
        {
            ostr && &Value = & && obj.
           
        }
    private:
        // data stored by the object
        T
// use an initialization list to assign value
template &typename T&
store&T&::store(const T& item): value(item)
// return the current value
template &typename T&
T store&T&::getValue() const
   
//   assign the argument as the new data member value
template &typename T&
void store&T&::setValue(const T& item)
    value =
#endif    // STORE_CLASS
4.2.2 声明模板类对象
为了声明模板类的对象,编译器需要根据特定的模板参数,创建一个具体的类型。为了做到这样,把类型放在类名后的尖括号里。
templateClass&type&  object(argument list);
这个声明创建了类的实例,其中的type类型用于数据成员和操作。例如,下面的声明创建不同数据类型的store对象:
store&int& intStore(5) ;  //数据值为整形类型
store&char& charStore(‘a’) ;
store&string& strStore(“templates”) ;  //字符串的一个类实例
下面为一个测试的例子:程序首先从对象strstore返回数值“Template”来说明成员函数getValue()和setValue()。然后附加一个字符串“Class”,新的字符串更新strStore中的数据值。
#include &iostream&
#include &string&
#include &d_store.h&
int main()
    //declare three types of store object
    store&int& intsStore(5);
    store&double& realStore(2.718);
    store&string& strStore(&Template&);
    cout&&&The values stored by the objects are:&&&
    cout&&intsStore&&
    cout&&realStore&&
    cout&&strStore&&
    cout&&
    cout&&&The concatenation of 'template' in strStore and 'Class' is : &&&
    strStore.setValue(strStore.getValue()+&Class&);
    cout&&strStore&&
    return 0;
4.3 允许动态改变大小,内部存储大小,并允许对象之间的赋值。就是向量容器。
API提供了构造函数和成员函数的原型说明,每个操作的作用以及前提条件和后置条件的注释。利用API,可以在应用程序中使用数据结构,而不必处理类的正式声明。
4.3.1 向量容器入门
向量是基于模板的类。她存储相同数据类型的元素。与数组相同的是她允许用下标运算符直接访问元素,不同的是,她存储其大小信息,且提供相关的size()函数,程序员利用此函数可以访问向量的元素个数。如长度为V.size()的向量,其下标范围是0~V.size()-1 。
声明向量对象:因为向量是类,所以,对象的声明和初始化涉及到使用构造函数。向量类包括3个不同的构造函数,这提供了很大的灵活性。第一个构造函数版本包括两个参数:大小和一个类型为T的初始值。第二个参数默认值为T()。这个构造函数的作用是为向量分配指定大小,并把初始值赋给每个元素。下面的语句声明了一个向量对象,但只使用了size参数。初始值为默认值T()。初始值为0的整形向量,0是整形的默认值。字符串向量中的元素初始值为“”(空字符串)。
vector&int&  intVector(5);  //长度为5的向量,包含整形数值0
vector&string&  strVector(10);  //长度为10的向量;每个元素都包含空字符串
构造函数允许用初始值作为第二个参数,这便在声明中提供 了更大的灵活性。
vector&char&  line(80 , ’’);
向量构造函数的另一个版本是从数组初始化其值。与数组不同的是,在声明向量时,不能用大括号中的初始化表。这项任务必须通过下面的步骤完成:先声明数组,然后把数组地址范围作为参数传递给构造函数。
int intArr[5] = {9,2,4,7,8,6,5,2};
vector&int&  intVector(intArr , intArr + 8 );    向量类的地址集合为半开集合[arr,arr + n) ;
int intArr[5] = {9,2,4,7,8,6,5,2};
int arrSize = sizeof(intArr) / sizeof(int) ;
vector&int&  intVector(intArr , intArr + arrSize );
explicit vector(const A& al = A());
explicit vector(size_type n, const T& v = T(), const A& al = A());
vector(const vector& x);
vector(const_iterator first, const_iterator last,
const A& al = A());
All constructors store the
al (or, for the copy constructor, x.()) in
and initialize the controlled sequence. The first constructor specifies an empty initial controlled sequence. The second constructor specifies a repetition of n elements of value x. The third constructor specifies a copy of the sequence controlled by x. The last constructor specifies the sequence [first, last).
In this , if a translator does not support member template functions, the template:
template&class InIt&
vector(InIt first, InIt last, const A& al = A());
is replaced by:
vector(const_iterator first, const_iterator last,
const A& al = A());
All constructors copy N elements and perform no interim .
向量类的第三个构造函数,即默认构造函数。在声明中没有包含参数,最终的向量为空,size = 0 ;如果我们不能添加新元素,空向量是没有什么价值的。
添加和删除向量元素:
void push_back(const T& x);
The member function inserts an element with value x at the end of the controlled sequence.向量大小自动加1 。
void pop_back();
The member function removes the last element of the controlled sequence, which must be non-empty.吧向量大小减1 。
向量类提供了函数back()来访问和更新尾部元素。对于非常量向量,此函数可以用在赋值语句的任何一边。对于常量向量,back()提供了向量中的最后元素数值的只读访问。下面的声明用数组创建字符向量,5字符vowel作为向量的初始值。
char  vowel[] = {‘a’,’e’,’i’,’o’,’u’};
int vowelSize = sizeof(vowel) / sizeof(char) ;
vector&char&  v(vowel , vowel +vowelSize) ;
cout&&v.back();  //’u’
v.push_back(‘w’);  //在向量末尾添加‘w’
v.back() = ‘y’;  //把尾部的‘w’变为‘y’
reference back();
const_reference back()
The member function returns a reference to the last element of the controlled sequence, which must be non-empty.
改变向量大小:
void resize(size_type n, T x = T());
The member function ensures that () henceforth returns n. If it must lengthen the controlled sequence, it appends elements with value x.
如果新的大小小于当前大小,resize()操作通过砍掉向量尾部的元素来收缩向量。
4.3.2 向量API
vector();创建一个空向量
vector(int n , const T& value = T());创建具有n个元素的向量,每个元素具有指定的数值
vector(T*  first , T*  last);用地址范围[first , last )初始化向量。符号*first和*last是指针表示方法。
T&  back();
const T&  back() const;
bool empty() const ;
T&  operator[](int i);可以取得或修改下标为i的向量元素。后置条件:如果运算符出现在赋值语句的左边,则右边的表达式改变下标引用的元素。
const T&  operator[](int i) const
void push_back(const T& value) ;
void  pop_back();
void resize(int n , const T& fill = T());
int  size()
一般情况下,插入排序在运行时间复杂度为平方级的排序算法中的表现最好。当表已经排序时,插入排序是线性的(O(n))。当表基本上排序时,插入排序依旧是线性的。
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:80325次
积分:1938
积分:1938
排名:第9444名
原创:110篇
转载:58篇
(1)(1)(1)(2)(1)(1)(1)(1)(1)(1)(3)(2)(7)(5)(3)(6)(9)(28)(97)

我要回帖

更多关于 store是什么意思 的文章

 

随机推荐