??
IntentService is a base class for Services
that handle asynchronous requests (expressed as Intents)
on demand. Clients send requests through startService(Intent) calls;
the service is starte...
分类:
其他好文 时间:
2014-06-05 03:03:46
阅读次数:
262
红色字体部分为关键,其他都是浮云。。
/**
*
* 由于该Service用于多线程下载文件,需要确保原子性,一直处理一个DownLoadFilePO对象
*
* detailed comment
* @see
* @since 1.0
*/
public class DownLoadService extends Service {
p...
分类:
其他好文 时间:
2014-06-04 22:03:23
阅读次数:
423
腾讯微薄的分享与新浪的区别在于除了获取accessToken之外还需要获取openId
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.auth);
web = (WebView) findVi...
分类:
其他好文 时间:
2014-06-04 21:00:25
阅读次数:
354
/*
* Copyright (c) 2013, 烟台大学计算机学院
* All rights reserved.
* 作 者:马广明
* 完成日期:2014 年 5 月 27 日
* 版 本 号:v1.0
* 问题描述:形状类中的纯虚函数
*/
#include
using namespace std;
const double PI=3.14;
class Sha...
分类:
其他好文 时间:
2014-06-04 22:02:45
阅读次数:
234
/*
*Copyright (c) 2013, 烟台大学计算机学院
* All rights reserved.
* 作 者:马广明
* 完成日期:2014 年 5 月 19 日
* 版 本 号:v1.0
* 问题描述:日期时间类
*/
#include
using namespace std;
class Date
{
public:
Date(...
分类:
其他好文 时间:
2014-06-05 02:02:18
阅读次数:
176
最近要毕业了,有半年没做比赛了.
这次参加百度之星的初赛娱乐一下.
现在写一下解题报告.
还是先看看四道题的类型吧
1.Scenic Popularity 暴力 复杂度O( 100 * 100 * 10000 ) 或者O( T * K * R) 线段树
2.Chess DP 复杂度 O(n^2)
3.Best Financing DP 复杂度O(n)
4.JZP Set 数论或DP 复杂度 O(n * log(n))...
分类:
其他好文 时间:
2014-06-04 23:35:07
阅读次数:
219
条款11:在operator = 中处理"自我赋值"...
分类:
其他好文 时间:
2014-06-04 21:01:03
阅读次数:
287
/*
*Copyright(c)2014,烟台大学计算机学院学生
*All rights reserved.
*文件名称:
*作者:马广明
*完成日期:2014 年 5 月 27 日
*版本号:v1.0
*问题描述:求各种立体体积。
*输入描述:无。
*程序输出:正方体,球体,圆柱体面积及体积
*问题分析:
*算法设计:
*/
#include
using names...
分类:
其他好文 时间:
2014-06-05 04:30:10
阅读次数:
206
《学习opencv》笔记——矩阵和图像操作——cvAbs,cvAbsDiff and cvAbsDiffS...
分类:
其他好文 时间:
2014-06-05 00:11:30
阅读次数:
310
问题RT,在程序中我使用了QT的监听事件,监听鼠标的位置,如果鼠标在按钮上就改变按钮的ICON,但是在Release版本中(Debug版本没问题),这些被监听的按钮都看不见了,于是开始了寻找答案的道路。
闲话少叙,直接上码:
void MainHomeForm::init()
{
//为按钮注册事件
ui->SystemSetButton->installEventFilter...
分类:
其他好文 时间:
2014-06-05 04:29:25
阅读次数:
537
Accepted : 42
Submit : 122
Time Limit : 1000 MS
Memory Limit : 65536 KB
题目描述
五虎棋是流传在东北民间的一种游戏,GG小的时候,经常被表哥虐得很惨。
由于各个地区的规则可能不大相同,并且GG的回忆不一定很准,所以,如果规则和你平常玩的的有冲突,请以这里为...
分类:
其他好文 时间:
2014-06-05 03:31:37
阅读次数:
180
最近在用QDeclarativeItem的继承来做Qt界面的控件,一开始发现怎么样也没法自动调用paint函数,后来查看了资料,发现如下字句:
You can subclass QDeclarativeItem to provide your own custom visual
item that inherits these features. Note that, because it ...
分类:
其他好文 时间:
2014-06-04 23:47:17
阅读次数:
511
#include
using namespace std;
class Shape
{
public:
virtual double area()=0;
};
class Circle:public Shape
{
public:
Circle(double r):R(r) {}
virtual double area()
{
...
分类:
其他好文 时间:
2014-06-05 03:40:40
阅读次数:
219
最近在给android 4.3系统进行root时候,一直出现如下的红色权限问题 :
7.695741] Freeing init memory: 236K
[ 8.555286] init: cannot find '/system/bin/dbus-daemon', disabling 'dbus'
[
8.566954] init: cannot execve('/s...
分类:
其他好文 时间:
2014-06-05 01:02:36
阅读次数:
358
如图所示。
该图片切换特效实现很简单,而且兼容性很好。
html页面如下
css样式
* {margin:0; padding:0;}
body {font-size:12px; color:#222; font-family:Verdana,Arial,Helvetica,sans-serif; b...
分类:
其他好文 时间:
2014-06-05 00:10:13
阅读次数:
332