码迷,mamicode.com
首页 >  
搜索关键字:es6 let const    ( 43838个结果
Effective C++_笔记_条款002_尽量以const、enum、inline替换#define
Effective C++_笔记_条款002_尽量以const、enum、inline替换#define。
分类:编程语言   时间:2014-05-19 19:45:55    阅读次数:332
驱动编程:内存管理基本函数
1)内存间复制(非重叠)应用:比如将需要显示的内容,从缓冲区复制到内存先看等VOID RtlCopyMemory(IN VOID UNALLGNED* Destination,IN CONST VOID UNALLGNED *Source,IN SIZE_T Length);//表示要复制的内存长度...
分类:其他好文   时间:2014-05-19 18:49:01    阅读次数:228
无限逼近思想
//#define LOCAL#include#includeusing namespace std;int const MAX_N=100001;int const INF=10000000;int N,M,x[MAX_N];void init(){ for(int i=0;i1) {...
分类:其他好文   时间:2014-05-19 17:20:45    阅读次数:204
找点(NYOJ891)
//#define LOCAL#include#include#include#includeint const MAX_N=101;typedef struct Point{ int x,y; bool operatorVec[i].y) { ...
分类:其他好文   时间:2014-05-19 17:08:45    阅读次数:253
kX3552 应用指南[双语海外版] kX Application Guide2.11.3.51
Warning[★警告★]: (1) authorization code sensitive parts of antivirus software, you can let go.     Do not worry deleted! Such as: 360 (2) requires a license copyrighted software, pirated reserved!...
分类:移动开发   时间:2014-05-18 13:59:25    阅读次数:380
分解质因数模板
/*==================================================*| 分解质因数,可能有些地方需要改为long long \*==================================================*/ const int MAXN=100010; int prm[MAXN+1]; bool is[MAXN+1]; int g...
分类:其他好文   时间:2014-05-18 10:12:14    阅读次数:334
web socket RFC6455 frame 打包、解包
#ifndef __APP_WEBSOCKET_FRAME_H__ #define __APP_WEBSOCKET_FRAME_H__ #include "memory.hpp" class buffer; struct websocket_frame { websocket_frame(); ~websocket_frame(); static const unsigned int f...
分类:Web程序   时间:2014-05-18 09:37:29    阅读次数:332
设计模式【2】:工厂方法
工厂方法和原型模式一样,也是属于创建对象的设计模式。 官方定义: “Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.” ...
分类:其他好文   时间:2014-05-18 06:37:51    阅读次数:257
HDU 4810 Wall Painting(组合数学)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4810 思路:先把每个数字按位分离出来,存放1的个数,那么每位0的个数为n - 1的个数,然后利用组合数学和异或的原理,枚举奇数个1的情况,然后利用乘法和加法计数原理累加出来的就是该位的答案,最后乘上改为对应的数值最后加起来就是答案 代码: #include #include const _...
分类:其他好文   时间:2014-05-18 04:30:41    阅读次数:257
数据结构与算法一
题目一:求1!+2!+…..+n! 的和的后6位,(注意n的范围) #include using namespace std; const int MAX = 1000000; int getResu(int n) { int sum=0; int temp= 1; for(int i=1; i <= n; i++) { temp *= i; temp %= MAX; ...
分类:其他好文   时间:2014-05-18 03:36:19    阅读次数:223
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!