CComModule为COM对象提供了基本的宿主支持,把windows中两种类型的宿主(EXE 和 DLL)之间的差别封装了起来。BEGIN_OBJECT_MAP(ObjectMap) OBJECT_ENTRY(CLSID_Math, CMath)END_OBJECT_MAP()CComModul....
分类:
其他好文 时间:
2014-06-19 00:57:54
阅读次数:
510
首先RHEL7安装,导入镜像,选择第一个安装7.0,接着出现下面的界面
选择英文
时间选择上海,software selection选择Server UI(加上图形化界面),设置installation destination最后点击begin installation
重新配置分区...
分类:
其他好文 时间:
2014-06-16 20:03:47
阅读次数:
388
1.accumulate的用法:int sum = accumulate(ivec.begin(), ivec.end(), 0 );第三个参数时累加的初值,更重要的是accumulate对要累加元素的类型一无所知,所以容器内的类型要与第三个实参的类型匹配,或者可转换成第三个实参的类型。2.find...
分类:
其他好文 时间:
2014-06-15 22:42:19
阅读次数:
285
排个序,求前k个元素和即可 int minimum(int K, vector danceCost) { sort(danceCost.begin(),danceCost.end()); return accumulate(danceCost.begin()...
分类:
其他好文 时间:
2014-06-15 21:53:14
阅读次数:
201
从大到小遍历一遍,每次取M个元素,然后求得最小的floor即可 int minimum(int M, vector heights) { sort(heights.begin(),heights.end()); int minFloor = 10000; ...
分类:
其他好文 时间:
2014-06-15 21:48:45
阅读次数:
229
使用Latex可以排版出漂亮的论文,尤其适合对含有数学公式论文的排版。
下面编写第一Latex源文件,实现对两个数学公式的排版:
新建文件first.tex:
\documentclass{article}
\begin{document}
\begin{equation}
\sqrt{x^2+y^2}
\end{equation}
\begin{equation}
\int_{a}^{...
分类:
其他好文 时间:
2014-06-15 15:13:13
阅读次数:
219
1 #encoding=UTF-8 2 # Configuration files must begin with a line specifying the encoding 3 # of the the file. 4 5 #***************************...
分类:
移动开发 时间:
2014-06-15 12:50:20
阅读次数:
619
1.crontab你可以在指定的时间执行一个shell脚本或者一系列Linux命令.可以让计算机在规定的时间内,执行相应的计划。2.实例# crontab –e0 6 * * * /root/bin/backup.sh这样Linux将会在每天早上6点运行 /root/bin/backup.sh3.命...
分类:
系统相关 时间:
2014-06-15 11:12:21
阅读次数:
566
在C++中在C++中for循环可以使用类似java的简化的for循环,可以用于遍历数组,容器,string以及由begin和end函数定义的序列(即有Iterator)
#include
#include
#include
using namespace std;
int main()
{
map ms;
ms.insert(make_pair("a", 1));
ms....
分类:
编程语言 时间:
2014-06-15 10:46:30
阅读次数:
241
1.知识点:可以对照下面的录屏进行阅读
PL/SQL程序结构
declare
说明部分 (变量说明,光标申明,例外说明 〕
begin
语句序列 (DML语句〕…
exception
例外处理语句
End;
/
----------------------------------------------------------------...
分类:
数据库 时间:
2014-06-14 00:30:36
阅读次数:
372