码迷,mamicode.com
首页 >  
搜索关键字:es6 let const    ( 43838个结果
CF:Problem 427C - Checkposts强连通 Tarjan算法
tarjan算法第一题    喷我一脸。。。。把手写栈的类型开成了BOOL,一直在找错。。。 #include #include #include #include #define maxn 100005 const int MOD=1000000007; using namespace std; struct node { int to,next; }edge[maxn...
分类:其他好文   时间:2014-05-15 08:18:56    阅读次数:353
指针和const限定符
指向const对象的指针,例如:const int *pival;pival是以个指向int类型const对象的指针,const限定pival指针所指向的对象类型,而并非pival本身,也就是说,pival并不是const,在定义时不需要对它进行初始化,如果需要,允许给pival重新赋值,使其指向另...
分类:其他好文   时间:2014-05-15 07:44:06    阅读次数:197
Don’t Assume – Per Session Buffers
MySQL has a number of global buffers, i.e. your SGA. There are also a number of per session/thread buffers that combined with other memory usage const...
分类:其他好文   时间:2014-05-15 07:34:17    阅读次数:307
Codeforces 430A Points and Segments (easy)
题意:让你染色点,要求在给出的区间内|红色个数-蓝色个数| 思路:排序后依次交替染色就能达到效果 #include #include #include #include #include using namespace std; const int MAXN = 110; int arr[MAXN]; int n,m,x,y; int main(){ scanf("%d%d",...
分类:其他好文   时间:2014-05-15 02:53:54    阅读次数:205
hdu2767Proving Equivalences(强连通,缩点)
Problem Description Consider the following exercise, found in a generic linear algebra textbook. Let A be an n × n matrix. Prove that the following statements are equivalent: 1. A is invertible...
分类:其他好文   时间:2014-05-15 01:30:21    阅读次数:309
c++11之初始化列表
C++的学习中,我想每个人都被变量定义和申明折磨过,比如我在大学笔试过的几家公司,都考察了const和变量,类型的不同排列组合,让你区别有啥不同。反正在学习C++过程中已经被折磨惯了,今天再来看看重温下那段“辉煌的历史”。...
分类:编程语言   时间:2014-05-14 23:51:02    阅读次数:480
XE6 ShortString与String相互转换
program Test;{$APPTYPE CONSOLE}uses System, System.SysUtils; const Value: array[0..5] of Byte = (5, 72, 101, 76, 76, 111); { Old ShortString represent...
分类:其他好文   时间:2014-05-14 23:42:03    阅读次数:475
PHP2014.5.14的总结:
1:生成随机数 2:定义常量(两种) (1):define():随便定义在哪里 (2):const():只能定义在最前面 3:想在函数里用全局变量必须用global申明一下 例:$conn = ""; //全局变量 function get_c...
分类:Web程序   时间:2014-05-14 23:37:33    阅读次数:615
Delphi XE6记录类型赋值
program Project1;{$APPTYPE CONSOLE}{$R *.res}uses System.SysUtils;TYPE Trec = record Member1, Member2: Integer; end;CONST IntRec: Trec = (Member1: 55;...
分类:其他好文   时间:2014-05-14 23:18:51    阅读次数:554
HDU 4034 Graph(floyd,最短路,简单)
题目一道简单的倒着的floyd。具体可看代码,代码可简化,你有兴趣可以简化一下,就是把那个Dijsktra所实现的功能放到倒着的floyd里面去。#include#include#includeusing namespace std;const int MAXN=110; const int IN....
分类:其他好文   时间:2014-05-14 22:19:11    阅读次数:309
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!