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
使用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
UVA 10127 - Ones
题目链接
题意:求出多少个1组成的数字能整除n
思路:一位位去取模,记录答案即可
代码:
#include
#include
int n;
int main() {
while (~scanf("%d", &n)) {
int ans = 1;
int now = 1;
while (now) {
...
分类:
其他好文 时间:
2014-06-15 15:10:41
阅读次数:
151
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
在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
DateTime.Now.ToString( " yyyy " )DateTime.Now.ToString( " yyyyMM " )DateTime.Now.ToString( " yyyyMMdd " )
分类:
其他好文 时间:
2014-06-15 00:49:01
阅读次数:
135
原文:MySQL取得当前时间的函数是什么 格式化日期的函数是什么取得当前时间用 now() 就行。在数据库中格式化时间 用DATE_FORMA T(date, format) .根据格式串format 格式化日期或日期和时间值date,返回结果串。 可用DATE_FORMAT( ) 来格式化DATE...
分类:
数据库 时间:
2014-06-14 18:33:24
阅读次数:
263
Thank you for your applying for employment with our company. Your application is now being processed. If you have any questions, please contact us.Any...
分类:
其他好文 时间:
2014-06-14 17:07:12
阅读次数:
204
坦克大战
时间限制:1000 ms | 内存限制:65535 KB
难度:3
描述
Many of us had played the game "Battle city" in our childhood, and some people (like me) even often play it on computer now.
What we are dis...
分类:
其他好文 时间:
2014-06-14 14:30:01
阅读次数:
274
Follow up for "Unique Paths":
Now consider if some obstacles are added to the grids. How many unique paths would there be?
An obstacle and empty space is marked as 1 and 0 respectively
in the...
分类:
其他好文 时间:
2014-06-14 12:02:12
阅读次数:
229