作者:申小宁原创作品转载请注明出处《Linux内核分析》MOOC课程http://mooc.study.163.com/course/USTC-1000029000实验截图:c代码:编译命令:汇编代码:基础知识寄存器寄存器是中央处理器内的组成部分。寄存器是有限存贮容量的高速存贮部件,它们可用来暂存指令,数据和地址..
分类:
其他好文 时间:
2015-03-09 01:51:15
阅读次数:
231
#!/usr/bin/python # encoding: utf-8 '''Spare.py is a starting point for a wxPython program.''' import wx class Frame(wx.Frame): '''Frame class that di...
分类:
编程语言 时间:
2015-03-09 01:39:44
阅读次数:
192
这道题目使用Map。 然后一次性遍历下来即可。 QAQ注意初始化的时候小心点不要错..Source Code://#pragma comment(linker, "/STACK:16777216") //for c++ Compiler#include #include #include #incl...
分类:
其他好文 时间:
2015-03-08 21:23:54
阅读次数:
134
1 vector G[MAXN]; 2 int pre[MAXN], lowlink[MAXN], sccno[MAXN], dfs_clock, scc_cnt; 3 stack S; 4 void Tarjan(int u) 5 { 6 pre[u] = lowlink[u] = ++...
分类:
其他好文 时间:
2015-03-08 21:20:10
阅读次数:
154
打算写两篇文章简单分析FFmpeg的写文件用到的3个函数:avformat_write_header(),av_write_frame()以及av_write_trailer()。其中av_write_frame()用于写视频数据,avformat_write_header()用于写视频文件头,而av_write_trailer()用于写视频文件尾。本文首先分析avformat_write_hea...
分类:
其他好文 时间:
2015-03-08 18:49:52
阅读次数:
342
本文来自转载一、窗口常用方法 1.Frame():构造方法,无标题,默认布局为BorderLayout。 2.Frame(String s):构造方法,窗口标题为s,默认布局为BorderLayout。 3.public void setBounds(int a,int b,int width...
分类:
编程语言 时间:
2015-03-08 18:31:19
阅读次数:
187
Frame Animation 表示帧动画,是顺序播放事先做好的图像,跟电影类似,Android SDK提供了另外一个类AnimationDrawable来定义使用Frame Animation。
下面我们就来看看具体怎么使用帧动画吧。
首先在drawable目录下新建一个frame.xml文件:
<item
android:drawable="@drawa...
分类:
移动开发 时间:
2015-03-08 17:14:22
阅读次数:
129
UIButton *testButton = [UIButton buttonWithType:UIButtonTypeSystem]; [testButton setFrame:CGRectMake(self.view.frame.size.width/2, self.view.frame.si....
分类:
移动开发 时间:
2015-03-08 10:24:33
阅读次数:
133
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the...
分类:
其他好文 时间:
2015-03-07 18:37:15
阅读次数:
367
在R语言中,有下面三种操作符可以提取对象的子集:
? “[”通常返回的对象与原对象的类型相同;它也可以返回一个对象中的多个元素
? “[[”用来从列表(list)或数据框(data.frame)中提取对象;也可从列表或数据框中提取单个元素,且返回对象的类型可以不为列表和数据框。
? “$”可以通过名称从列表和数据框中提取元素;如果仅从抽取元素的角度来看,和“[[”没有区别
(1...
分类:
编程语言 时间:
2015-03-07 14:12:30
阅读次数:
515