(一)inline函数(摘自C++ Primer的第三版)在函数声明或定义中函数返回类型前加上关键字inline即把min()指定为内联。 inline int min(int first, int secend) {/****/}; inline 函数对编译器而言必须是可见的,以便它能够在调用点内...
分类:
编程语言 时间:
2014-11-07 20:47:32
阅读次数:
220
我想谈谈 我对于Head First SQL 中文版的一些看法事实上关于我翻译的这个Head First SQL 中文版。。我自觉得:的确翻译得非常烂。。和翻译Head First C#的飞哥相比,的确是要差了几个等级。。。可是要知道。。。飞哥是过了六级。。。550多分。。。口语A级的鸟人的嘛。。我...
分类:
数据库 时间:
2014-11-07 18:35:02
阅读次数:
170
public class JsonActivity extends Activity { /** Called when the activity is first created. */ private TextView tvJson; private Button btn...
分类:
移动开发 时间:
2014-11-07 16:45:37
阅读次数:
166
select student.sno,sname,ssex,sage,sdept,cno,gradefrom student,scwhere student.sno=sc.sno//?查询每个学生及其选课情况;select first.cno,second.cpnofrom course first...
分类:
数据库 时间:
2014-11-07 14:35:11
阅读次数:
356
PostgreSQL与MySQL比较PostgreSQL的最佳特性 你用了吗?Entity Framework 4.3.1 Code First 连接 PostgreSQL 9.2.3 小结Entity Framework 6 Support for Oracle, MySQL, PostgreSQ...
分类:
数据库 时间:
2014-11-07 11:10:31
阅读次数:
135
迭代器模式
GOOD:提供一种方法顺序访问一个聚敛对象的各个元素,而又不暴露该对象的内部表示。
为遍历不同的聚集结构提供如开始,下一个,是否结束,当前一项等统一接口。
例:
#include
#include
using namespace std;
template
class Iterator
{
public:
virtual void first...
分类:
其他好文 时间:
2014-11-06 22:05:59
阅读次数:
201
explain显示了mysql如何使用索引来处理select语句以及连接表。可以帮助选择更好的索引和写出更优化的查询语句。使用方法,在select语句前加上explain就可以了:如:explainselectsurname,first_nameforma,bwherea.id=b.idEXPLAI...
分类:
数据库 时间:
2014-11-06 21:49:56
阅读次数:
274
1、PHP获得用户端数据的三个来源:get post cookie2、$_GET的用法,$_GET是通过url来获得值的,所以,我么这里建立两个最简单的网页,first_page.php 和second_page.phpfirst_page.php1 5 >second_page.php strin...
分类:
Web程序 时间:
2014-11-06 19:54:44
阅读次数:
162
So how should things work? The first principle is that code should be clear and simple. If you want to output some text, you call web.output. If you w...
分类:
Web程序 时间:
2014-11-06 19:12:15
阅读次数:
259
BeginIn a text editor —vim,emacs, ornano— create a file with the following contents and filename:written and applied your first Puppet manifest.[root@...
分类:
其他好文 时间:
2014-11-06 17:20:35
阅读次数:
392