码迷,mamicode.com
首页 >  
搜索关键字:defined    ( 2488个结果
ini.php文件简析
defined("CORE_PATH") or define("CORE_PATH", "./core/"); //框架核心路径框架默认核心路径,如果入口文件不配置,就默认该配置defined("APP_PATH") or define("APP_PATH","./app/");//项...
分类:Web程序   时间:2014-07-16 21:14:51    阅读次数:224
框架目录一览以及入口文件简析
core是框架核心部分,home和admin分别是两个应用本框架是单点入口,home的入口文件是index.php,admin的入口文件是adsranadmin.phpindex.php代码如下COREINC判断是不是从入口访问,在其他文件中加入下列代码<?phpif(!defined('COREI...
分类:其他好文   时间:2014-07-16 21:12:09    阅读次数:167
CI框架中 类名不能以方法名相同
昨天晚上一个坑爹的问题折腾了我一晚上,首先我来说下我的代码,我建立了一个index的控制器然后呢 在控制器里有一个index的方法。页面模板都有。if ( ! defined('BASEPATH')) exit('No direct script access allowed');class In....
分类:其他好文   时间:2014-07-16 16:57:34    阅读次数:208
codeforces 446C DZY Loves Fibonacci Numbers(数学 or 数论+线段树)
In mathematical terms, the sequenceFnof Fibonacci numbers is defined by the recurrence relationF1?=?1;F2?=?1;Fn?=?Fn?-?1?+?Fn?-?2(n?>?2).DZY loves Fib...
分类:其他好文   时间:2014-07-16 16:45:19    阅读次数:418
Validate Binary Search Tree
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node's key.Th...
分类:其他好文   时间:2014-07-13 16:53:01    阅读次数:189
JavaScript--基于对象的脚本语言学习笔记(一)
1、两种嵌入js的方式    使用javascript前缀构建url:运行js    js脚本放在之间: alert("运行JavaScript。。") 2、如果没有声明变量直接使用会报错:ReferenceError: x is not defined    如果声明了没有赋值,则该变量的值为undefined 3、单独保存js 文件     4、3个强制类型转换的函数...
分类:编程语言   时间:2014-07-13 00:15:56    阅读次数:242
LeetCode :: Validate Binary Search Tree[详细分析]
Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree of a node contains only nodes with keys less than the node's key.Th...
分类:其他好文   时间:2014-07-12 17:26:31    阅读次数:256
poj 1579 Moving Tables(水)
DescriptionThe Recaman's sequence is defined by a0 = 0 ; for m > 0, am= am?1? m if the rsulting amis positive and not already in the sequence, otherwi...
分类:其他好文   时间:2014-07-11 11:12:10    阅读次数:201
win7系统可以远程可以ping通,但是访问不行处理
1、直接按下win+r键,输入secpol.msc,打开本地安全策略。 2、找到“安全设置”的“本地策略”的“安全选项” 3、在右边一栏找到“网络安全:LAN管理器身份验证级别”,双击进入 4、在默认状态选项下,英文版应该为"no defined",中文版为空。下拉那个默认选项,选择“仅发送NTLM响应” 5、确认,收工...
分类:Windows程序   时间:2014-07-10 22:32:15    阅读次数:634
Linux 获得机器的IP和网卡信息
Linux 获得机器的IP和网卡信息代码来自于网络, 我改写了, 有美不敢自专, 特分享之.用法很简单,就3个函数.头文件getmac.h:/** * getmac.h * * 2014-07-08: init created */ #ifndef GETMAC_H_INCLUDED #define GETMAC_H_INCLUDED #if defined(__cplusplus) e...
分类:系统相关   时间:2014-07-09 09:22:55    阅读次数:403
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!