网上找了一堆资料学习一下,了解这些,有助于规化程序结构,优化代码;使用gcc编译出来的程序,用size可以查看程序结构和大小,如
1: #size hello 2: Text data bss dec hex filename 3: 778 200 4 982 3D6 hello...
分类:
其他好文 时间:
2014-05-26 10:07:17
阅读次数:
289
The concept of STL is based on a separation of
data and operations. The data is managed by container classes, and the
operations are defined by config...
分类:
其他好文 时间:
2014-05-26 09:43:55
阅读次数:
288
变量定义(variables):local: time or _time instance:
@time class: @@time global $time数据类型(data types)Numeric String Symbol Boolean
Array Hashvariabl...
分类:
其他好文 时间:
2014-05-26 09:39:54
阅读次数:
217
一般用来分析sql语句如何执行,使用了那些键mysql>explain select *
from
table;+----+-------------+-------+------+---------------+------+---------+------+------+-------+|
id...
分类:
数据库 时间:
2014-05-26 09:12:10
阅读次数:
249
Python标识符在Python中,标识符有字母数字和下划线组成.在Python中,标识符可以包括英文数字以及下划线但是不能以数字开头.Python中,标识符是区分大小写的.以下划线开头的标识符是由特殊含义的.比如_foo代表不能直接访问的类属性,需通过类提供的接口进行访问,不能用"from
XXX...
分类:
编程语言 时间:
2014-05-26 09:11:50
阅读次数:
319
Given a linked list, remove the nth node from
the end of list and return its head. For example, Given linked list:
1->2->3->4->5, and n = 2. After rem...
分类:
其他好文 时间:
2014-05-26 09:08:23
阅读次数:
262
最近在网上找了下mysql查询随机的几个sql,我把最终的记录下来。 SELECT *
FROM uchome_mtag AS a JOIN (SELECT MAX(tagid) AS id FROM uchome_mtag) AS b ON
(a.tagid>=FLOOR(b.id*RAND())...
分类:
数据库 时间:
2014-05-26 08:51:19
阅读次数:
317
SQLServer 分页查询1.SELECT TOP 30 * FROM ARTICLE WHERE
ID NOT IN(SELECT TOP 45000 ID FROM ARTICLE ORDER BY YEAR DESC, ID DESC) ORDER BY
YEAR DESC,ID DESC ...
分类:
数据库 时间:
2014-05-26 08:43:42
阅读次数:
270
Word SearchGiven a 2D board and a word, find if
the word exists in the grid.The word can be constructed from letters of
sequentially adjacent cell, wh...
分类:
其他好文 时间:
2014-05-26 08:21:06
阅读次数:
310
##adb命令是安装到platform-tools目录中,而非上一步android命令所在的tools目录。$ cd
/opt/local/share/java/android-sdk-mac_x86/platform-tools##先探测是否可以正确识别设备,有设备号和device字样表示正确识别...
分类:
移动开发 时间:
2014-05-26 08:00:20
阅读次数:
273