码迷,mamicode.com
首页 > 其他好文
【程序设计】i++与++i的底层汇编分析
【程序设计】i++与++i的底层汇编分析...
分类:其他好文   时间:2014-09-20 08:52:37    阅读次数:139
sizeToFit的用法
首先解释一下sizeToFit:意思是 当前视图边界和边界大小变化。(自动根据文本的长度改变自身的长度)...
分类:其他好文   时间:2014-09-20 08:52:27    阅读次数:159
??让你的控件显示QQ表情
iPhone支持unicode emoji字符集 UILable、UITextView、UIWebView和UITextField都可以直接使用,且可以随着字体大小改变...
分类:其他好文   时间:2014-09-20 08:52:17    阅读次数:333
算法学习之排序算法:堆排序
要了解堆排序,首先要了解堆的概念,因为本文主要研究堆排序的算法,此处对数据结构堆只是给出概念:n个元素的序列{k1,k2,...kn},当且仅当满足如下关系时,称之为堆。 k[i]  (或 k[i] >= k[2i]且k[i] >= k[2i+1]) 比如:序列96、83、27、38、11、09(或12、36、24、85、47、30、53、91)都是堆。        如果将堆对应的一维数...
分类:其他好文   时间:2014-09-20 08:52:15    阅读次数:188
directX枚举系统设备类
void CSysEnumDlg::DisplayFullCategorySet(void){    USES_CONVERSION;    HRESULT hr;    IEnumMoniker *pEmCat = 0;    ICreateDevEnum *pCreateDevEnum = NULL;    int nClasses=0;    // Create an enumerator...
分类:其他好文   时间:2014-09-20 08:51:37    阅读次数:281
directX根据设备类GUID查询所属的filter
hr = m_pSysDevEnum->CreateClassEnumerator(*clsid, &pEnumCat, 0);    ASSERT(SUCCEEDED(hr));    if FAILED(hr)        return;    // Enumerate all filters using the category enumerator    hr = EnumFilters...
分类:其他好文   时间:2014-09-20 08:51:29    阅读次数:199
directX显示采集源(摄像头)filter
IGraphBuilder * g_pGraphBuilder = NULL;IBaseFilter *Pbf=0;IVideoWindow  * g_pVWindow = NULL;IMediaControl * g_pMControl = NULL;IMediaEventEx * g_pMEvent = NULL;ICaptureGraphBuilder2 * g_pCaptureBuilde...
分类:其他好文   时间:2014-09-20 08:51:17    阅读次数:256
tmpfs
the /tmp folder of linux will be cleaned every time when you reboot.Well, actually, It doesn't "delete on reboot"; it only exists in RAM in the first ...
分类:其他好文   时间:2014-09-20 08:50:36    阅读次数:218
rails migrate 同名的问题, 当为了图省事的时候,问题就会找上门
users 表结构 ( name, address )现要让 users 表添加多个地址,于是乎有了下面的 migrationdef change unless column_exists? :users, :address_id add_column :users, :address_id...
分类:其他好文   时间:2014-09-20 08:50:06    阅读次数:279
第十三章、学习 Shell Scripts 简单的 shell script 练习
简单的 shell script 练习简单范例 对谈式脚本:变量内容由使用者决定[root@www scripts]# vi sh02.sh#!/bin/bash# Program:# User inputs his first name and last name. Program shows.....
分类:其他好文   时间:2014-09-20 08:49:06    阅读次数:239
第十三章、学习 Shell Scripts
什么是 Shell scriptsshell script (程序化脚本) :shell script 是针对 shell 所写的『脚本!』shell script 是利用 shell 的功能所写的一个『程序 (program)』,这个程序是使用纯文字档,将一些 shell 的语法与命令(含外部命....
分类:其他好文   时间:2014-09-20 08:48:36    阅读次数:239
工作安排加强版(神奇的并查集)
题目描述:为了维持农场的运转,约翰必须打工赚钱。他接到了N份工作,每份工作恰好占用他一天的时间。约翰从第一天开始工作,他可以任意安排这些工作的顺序,第i份工作有Pi的报酬,但必须在第Di天结束之前完成。在截止日期后完成的工作没有报酬。请帮助约翰规划每天的工作,使得他赚到的钱最多。1≤N≤105, 1...
分类:其他好文   时间:2014-09-20 08:48:27    阅读次数:238
Serializable and serialVersionUID
如果某个 class implements Serializable,Eclipse 会提示生成 serialVersionUID?,多数情况下,我都选择是。可这个东西到底是什么呢? package?com.home.demo; import?java.io.Serializable; public?class...
分类:其他好文   时间:2014-09-20 07:47:17    阅读次数:259
Leetcode: Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total numb...
分类:其他好文   时间:2014-09-20 07:45:26    阅读次数:195
STM32点灯需要的文件
1. 启动文件: A. coreM3的: core_m3.c B.厂商的:startup_stm32f10x_md.s2. 库文件: 必须加:misc.c 其他的:需要哪些加哪些3.用户文件 main.c,注意,引用的stm32f10x_conf.h需要进行配置 ISR: stm32f1...
分类:其他好文   时间:2014-09-20 07:45:06    阅读次数:162
Leetcode: Restore IP addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255...
分类:其他好文   时间:2014-09-20 07:44:47    阅读次数:235
foreach ($users as $key=>$value)
1: foreach(array_name as $value) { statement; } 这里的array_name是你要遍历的数组名,每次循环中,array_name数组的当前元素的值被赋给$value,并且数组内部的下标向下移一步,也就是下次循环回得到下一个元素。 2:foreach(ar...
分类:其他好文   时间:2014-09-20 06:42:16    阅读次数:199
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!