主引导记录(Master Boot Record,缩写:MBR),又叫做主引导扇区,是计算机开机后访问硬盘时所必须要读取的首个扇区,它在硬盘上的三维地址为(柱面,磁头,扇区)=(0,0,1)。在深入讨论主引导扇区内部结构的时候,有时也将其开头的446字节内容特指为“主引导记录”(MBR),其后是4个16字节的“磁盘分区表”(DPT),以及2字节的结束标志(55AA)。因此,在使用“主引导记录”(M...
分类:
其他 时间:
2014-08-27 14:47:58
收藏:
0 评论:
0 赞:
0 阅读:
297
1.布局文件
<LinearLayout
android:id="@+id/viewGroup"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:orientat...
分类:
其他 时间:
2014-08-27 14:47:47
收藏:
0 评论:
0 赞:
0 阅读:
244
当我们开发过程中需要实现控件的圆角矩形或者给背景添加边框时,最佳的办法不是生成背景图片或者添加ImageView当做边界,而是利用Shape来做。
思路就是在drawable文件夹中自定义一个美化布局,代码如下
<stroke
android:width="2dp"
android:color="#DCD8D8...
分类:
移动平台 时间:
2014-08-27 14:47:38
收藏:
0 评论:
0 赞:
0 阅读:
533
程序员是一位开发车间管理自己加工车间,扮演者车间主任。
程序员是一个生产机器每天生产这,开发这所需要的产品。
程序员是一位设备维修工程师,电脑坏了自己一并解决。
程序员是一个设计师,为用户为美观设计这设计这。
程序员是一位美工,程序员是一个前台工程师。
程序员是一个机器人,为程序泛滥着种种思想。...
分类:
其他 时间:
2014-08-27 14:47:28
收藏:
0 评论:
0 赞:
0 阅读:
257
Median of Two Sorted Arrays
There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall
run time complexity should be O(log (...
分类:
其他 时间:
2014-08-27 14:47:18
收藏:
0 评论:
0 赞:
0 阅读:
257
12.1、Decorator模式
即使没有某一个对象的类的源代码,甚至即便这个类是声明为final的,Decorator模式和Wrapper模式都允许装饰或包装这个对象。
Decorator模式适用于无法使用继承的情况(比如,所指对象的类为final),或者你不想亲自创建对象,而是想从另一个子系统中获取。例如,Servlet容器创建了一个ServletRequest和一个ServletResp...
分类:
其他 时间:
2014-08-27 14:47:08
收藏:
0 评论:
0 赞:
0 阅读:
237
1.TextView显示的内容过长时自动显示省略号:
省略号的位置:
android:ellipsize="end" 省略号在结尾
android:ellipsize="start" 省略号在开头
android:ellipsize="middle" 省略号在中间
TextView显示的行数:
android:singleline="true"
androi...
分类:
其他 时间:
2014-08-27 14:46:57
收藏:
0 评论:
0 赞:
0 阅读:
316
??
1.第一个最简单的类模板案例
#include
"mainwindow.h"
#include
#include
#include
templateclass
T>
class
run
{
public:
T
w;
void
show()
{
...
分类:
其他 时间:
2014-08-27 14:46:49
收藏:
0 评论:
0 赞:
0 阅读:
253
??
1.override,final的使用,两者都是针对虚函数,也就是说要有virtual关键字
#include
//C++中的final和override主要是针对虚函数
//加了final表示拒绝重写,这是为了使某些情况下,拒绝接口的重写
//override,声明重写父类的方法,前提是要有virtual关键字修饰函数。
//当父类没有接口...
分类:
其他 时间:
2014-08-27 14:46:29
收藏:
0 评论:
0 赞:
0 阅读:
278
jQuery全选反选插件,经易让你实现一个表单列表数据的全选与取消全选功能,内含示例,小巧实用。自动判断当前选中数量,加上全选。在没有jQuery之前,我们需要一大段js代码来实现这种效果。有了jQuery这个强大的库之后,我们可以很方便的开发实现这种效果的jQuery插件。我将它命名为jQuery.fn.check插件。前端框架分享
在构建我们的插件之前,我们想考虑一下其功能需求:
...
分类:
Web开发 时间:
2014-08-27 14:46:18
收藏:
0 评论:
0 赞:
0 阅读:
311
UVA 227...
分类:
其他 时间:
2014-08-27 14:46:08
收藏:
0 评论:
0 赞:
0 阅读:
194
1. Before expanding:
2. coding:
Smooth Animated Menu
body {
background-color: #F3F3F3;
font-family: "Lucida Grande", arial, sans-serif;
...
分类:
Web开发 时间:
2014-08-27 14:45:58
收藏:
0 评论:
0 赞:
0 阅读:
471
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 number of bits in the cod...
分类:
其他 时间:
2014-08-27 14:45:48
收藏:
0 评论:
0 赞:
0 阅读:
269
最近需要做一个选项框,其中需要选择多个项目,NumberPicker是个不错的选择,如何让它显示文字呢?
其实很简单,如下即可:
np = (NumberPicker) findViewById(R.id.numberPicker1);
String[] city = {"北京","上海","广州","深圳","成都","天津"};
np.setDisplayedValues(ci...
分类:
其他 时间:
2014-08-27 14:45:38
收藏:
0 评论:
0 赞:
0 阅读:
497
1.关于searchView:
<SearchView
android:id="@+id/search_view"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:iconifiedByDefault="fal...
分类:
其他 时间:
2014-08-27 14:45:32
收藏:
0 评论:
0 赞:
0 阅读:
254
上一篇我们简单的讲解了Spring和MyBatis的整合,但你不难发现,其配置起来还是够麻烦的。最明显的一点是,我们需要在自定义的Mapper接口写个很长的SQL注解,并且还要手动注册到Spring容器。本文主要讲解简化的方法。
首先,还是定义接口,但你已看不到任何框架的痕迹,...
分类:
数据库技术 时间:
2014-08-27 14:45:32
收藏:
0 评论:
0 赞:
0 阅读:
345
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
namespace HuaGongWeb
{
public sta...
分类:
数据库技术 时间:
2014-08-27 14:45:16
收藏:
0 评论:
0 赞:
0 阅读:
263
这里是vector的所有构造方法,成员方法的一些总结,具体的可以详看后面的链接。
原文地址:http://www.cplusplus.com/reference/vector/vector/operator[]/
public member function
std::vector::operator[]
reference operator[] (...
分类:
数据库技术 时间:
2014-08-27 14:44:18
收藏:
0 评论:
0 赞:
0 阅读:
318
462 A 题意读懂后就好做了,就是与一个方块上下左右相邻的‘o’的个数,如果是偶数,yes,否则,no。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#define pi acos(-1.0)
#define inf 0xfffffff
#define maxn 5000...
分类:
其他 时间:
2014-08-27 14:44:08
收藏:
0 评论:
0 赞:
0 阅读:
174
题意:
一幅有向图是不是仙人掌
思路:
有向图仙人掌是强连通图且每条边最多只属于一个环
一幅有向图是仙人掌当且仅当满足3个条件:
1、dfs树无横向边
2、对于节点u的所有儿子v,它们的low[v]
3、满足low[v]
证明见 http://download.csdn.net/detail/kksleric/4502360
代码:
#include
#include
#i...
分类:
其他 时间:
2014-08-27 14:43:58
收藏:
0 评论:
0 赞:
0 阅读:
276