码迷,mamicode.com
首页 >  
搜索关键字:maximum value    ( 41834个结果
【STL基础】list
list构造函数://default:list l; //空的list//fill:list l(n); //n个元素, 元素默认初始化list l(n, value); //n个元素值为value//range:list l(fir...
分类:其他好文   时间:2014-05-23 09:49:56    阅读次数:314
Digital Roots,函数
Digital Roots 时间限制: 1 Sec  内存限制: 128 MB 提交: 91  解决: 29 [提交][状态][论坛] 题目描述 The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single d...
分类:其他好文   时间:2014-05-22 13:01:21    阅读次数:223
二进制查找树转换为双向链表
完全按照海涛哥剑指offer里边的递归思路来写的,基本一样,仅作学习验证,努力锻炼,努力学习!code如下: //Change a BSTree to a sorted double linklist struct BSTreeNode { int value; BSTreeNode *left; BSTreeNode *right; }head; //Create a node of...
分类:其他好文   时间:2014-05-22 10:23:27    阅读次数:237
C经典之10-输出控制符---ShinePans
#include #include #include //system(); 这个指令需要用到此头文件 #include //toupper要用到 void main() { float value = 1.23456; printf("%8.1f\n", value); printf("%8.3f\n", value); printf("%8.5f\n", value)...
分类:其他好文   时间:2014-05-22 09:18:08    阅读次数:257
2.设计包含 min 函数的栈
Stack with min value.
分类:其他好文   时间:2014-05-22 05:05:42    阅读次数:261
#ifdef #endif #if #endif
c语言里所有以#开头的都是预编译指令,就是在正式编译之前,让编译器做一些预处理的工作。 #ifdef DEBUG printf("variable x has value = %d\n",x); #endif#if和#endif是配对的,叫做条件编译指令,如果满足#if后面的条件,就编译#if和#....
分类:其他好文   时间:2014-05-22 04:37:10    阅读次数:251
3.子数组的最大和
Maximum continuous sub-array.
分类:其他好文   时间:2014-05-22 04:36:26    阅读次数:232
main()函数中argv的理解及赋值
一、理解 C编译器允许main()函数没有参数,或者有两个参数(有些实现允许更多的参数,但这只是对标准的扩展)。参数argc(argument count)是int类型,表示命令行中的字符串数;argv(argument value)是一个指向字符串的指针数组。命令行中的每个字符串被存储到内存中,....
分类:其他好文   时间:2014-05-22 04:08:58    阅读次数:260
ThinkPHP源码阅读2-----C函数配置文件详解
ThinkPHP的配置非常灵活,可自定义加载.大概看了一下,一共有这几个地方会加载配置文件,方便以后的读取/** *获取和设置配置参数支持批量定义 * *@paramstring|array$name *配置变量 *@parammixed$value *配置值 *@returnmixed */ functionC($name=null,$value=null){ static$_con..
分类:Web程序   时间:2014-05-20 20:13:46    阅读次数:347
HashSet内对象无法remove.
1.HashSet内的对象无法remove:在Java中HashSet的底层的实现是通过Map来实现,将要保存的对象的hashcode值作为Key,使用一个dummy作为Value.在对象被放入Set之后,如果有操作改变影响该对象的hashcode的变量,会造成该对象无法被remove,因为remove时是通过hashcode来查找Set内的..
分类:其他好文   时间:2014-05-20 19:57:22    阅读次数:294
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!