码迷,mamicode.com
首页 >  
搜索关键字:const char p    ( 57984个结果
NYOJ287
//#define LOCAL#include#include#include#includeint const MAX_N=1001;typedef struct Point{ double x,y; bool operatorVec[i].y) { ...
分类:其他好文   时间:2014-05-15 13:51:08    阅读次数:230
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
C中字符串常见操作
#include #include #include #include #include // #include int main(void){ char str1[]="This is the first string"; char str2[]="That is the other string"; // printf(strcpy(str1,str...
分类:其他好文   时间:2014-05-15 01:39:40    阅读次数:348
typedef和define的区别
在使用C语言或者C++开发中,我们离不开typedef和define的使用,typedef相当于我们重新定义了一种类型,而define则只是简单的替换,这里我们简单归总一下二者的差别。 首先,我们可以用其他类型说明符对宏类型名进行扩展,但是对typedef的类型名不能扩展,比如 #define  demo   char 我们可以定义unsigned demo c;完全没问题,但是对于type...
分类:其他好文   时间:2014-05-15 01:24:18    阅读次数:249
c++11之初始化列表
C++的学习中,我想每个人都被变量定义和申明折磨过,比如我在大学笔试过的几家公司,都考察了const和变量,类型的不同排列组合,让你区别有啥不同。反正在学习C++过程中已经被折磨惯了,今天再来看看重温下那段“辉煌的历史”。...
分类:编程语言   时间:2014-05-14 23:51:02    阅读次数:480
《深入Java虚拟机学习笔记》- 第12章 整数运算
Java虚拟机提供几种进行整数算术运算的操作码,他们执行基于int和long类型的运算。当byte、short和char类型值参与算术运算时,首先会将它们转换为int类型。这些操作码都不会抛出异常,溢出在这里通常可以被忽略。整数加法操作码操作数说明iadd(无)从栈中弹出两个int类型数,相加,然后...
分类:编程语言   时间:2014-05-14 23:36:57    阅读次数:386
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
鸽巢原理-poj3370
#include int main(int argc, char *argv[]){ int c = -1, n = -1; while (true) { scanf("%d%d",&c,&n); int arr[n],sum[n],b[n]; if (c + n == 0) { ...
分类:其他好文   时间:2014-05-14 23:11:50    阅读次数:391
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!