int __builtin_constant_p (exp); You can use the built-in function __builtin_constant_p to determine if a value is known to be constant at compile-time...
分类:
其他好文 时间:
2014-08-04 21:14:17
阅读次数:
193
gitwiki 我是一个php程序员,但是我还是用windows开发环境。我不争气。 下载 git bash(windows环境下的git) 安装完之后设置用户名和邮箱 git config --global user.name "linjingxiong" git config --global use...
分类:
其他好文 时间:
2014-08-04 18:30:37
阅读次数:
180
Although Model-View-Controller (MVC) is known by nearly every Web developer, how to properly use MVC in real application development still eludes many people. The central idea behind MVC is?code ...
分类:
Web程序 时间:
2014-08-04 18:28:57
阅读次数:
349
Item 13:Use objects to manage resources
假设我们使用一个用来塑膜投资行为的程序库,其中各式各样的投资类型继承自一个root class:
class Investment { ... }; //“投资类型”继承体系中的root class
进一步假设,这个程序系通过一个工厂函数(工厂函数会“返回一个base class指针,指向新生成...
分类:
编程语言 时间:
2014-08-04 18:06:17
阅读次数:
212
1.更改root密码1 use mysql;2 update user set password=password('petecc') where user='root';2.root远程登录1 update user set host='%' where host='localhost';2 fl...
分类:
数据库 时间:
2014-08-04 17:21:07
阅读次数:
259
准备工作 NodeJS(NPM) Grunt & Bower: npm install -g grunt-cli bower(if fail, use sudo) npm install -g generator-angular yo angular npm install bower install execute grunt tasks like: grunt serve...
分类:
其他好文 时间:
2014-08-04 14:47:27
阅读次数:
279
1:回调还是返回(return) 在写代码的时候,我们经常碰到这样的场景:调用一个函数或者方法时需要返回多个值给上级调用者,如示例: void?methodA(){
???Wrap?w?=?methodB();?
???w.one;?//use
???w...
分类:
其他好文 时间:
2014-08-04 14:44:57
阅读次数:
183
今天在做自定义ViewGroup中,出现了一下错误提示Use View.isInEditMode() in your custom views to skip code when shown in Eclipse具体解决方法:在eclipse error log中查看错误具体出现在哪一行,然后将if...
分类:
系统相关 时间:
2014-08-04 13:26:17
阅读次数:
319
use system.IOUtils TPath.GetPicturesPath; tpath.GetTempPath; TPath.GetMusicPath; TPath.GetPicturesPath; TPath.GetDocumentsPath; TPath.GetDownloadsPath...
分类:
移动开发 时间:
2014-08-03 23:03:56
阅读次数:
346
最近拿了一个开源的源码看了下,在调试的过程中发现调用存数过程的output参数的时候一直出错,现在将问题记录下来。问题描述:1. 使用Microsoft.Practices.EnterpriseLibrary.Data.dll调用数据库2. 存数过程如下:USE [Survey]GO/****** ...
分类:
其他好文 时间:
2014-08-03 22:57:46
阅读次数:
492