上一页 1 ··· 139 140 141 142 143 144 145 146 147 ··· 454 下一页
可能大家都知道我们保存相册到Android手机的时候,然后去打开系统图库找不到我们想要的那张图片,那是因为我们插入的图片还没有更新的缘故,先讲解下插入系统图库的方法吧,很简单,一句代码就能实现MediaStore.Images.Media.insertImage(getContentResolver(), mBitmap, "", "");通过上面的那句代码就能插入到系统图库,这时候有一个问题,就是我们不能指定插入照片的名字,而是系统给了我们一个当前时间的毫秒数为名字,有一个问题郁闷了很久,我还是先把insertImage的源码贴出来吧 /** * In Read More
posted @ 2013-05-29 19:24 javawebsoa Views(559) Comments(0) Diggs(0)
/* * CCycleBuffer.h * * Created on: 2013-5-27 * Author: shiguang */#ifndef __test__CCycleBuffer__#define __test__CCycleBuffer__#include <stdio.h>#include <stdlib.h>#include <string.h>#include <assert.h>class CCycleBuffer{public: bool isFull(); bool isEmpty(); void Empty(); in Read More
posted @ 2013-05-29 19:22 javawebsoa Views(679) Comments(0) Diggs(0)
multimap 是属于关联容器的一个(其它三个是map、set、multiset),关联容器的插入、删除和查找时间都相同,为O( log(N) 。在学习 multimap 之前最好得先对 map 和 pair 有一定的了解。 multimap是一个允许有多个同键元素的map。其接口与map接口基本相同,只有以下几点改变:multimap 没有提供operator[ ]。由于一个键可能对应多个元素,所以这个操作符没有意义。multimap上的插入总会成功。因此,多映射(multimap)insert()增加一个元素时,并不需要返回 iterator 和 bool 的 pair 。它只返回 i. Read More
posted @ 2013-05-29 19:21 javawebsoa Views(254) Comments(0) Diggs(0)
导入苹果的两个框架是必不可少的环节。。。 代码部分+小解:- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. AudioSessionInitialize (NULL, NULL, NULL, NULL); /* OSStatus AudioSessionInitialize ( CFRunLoopRef inRunLoo... Read More
posted @ 2013-05-29 19:20 javawebsoa Views(315) Comments(0) Diggs(0)
原题:BackgroundProblems in Computer Science are often classified as belonging to a certain class of problems (e.g., NP, Unsolvable, Recursive). In this problem you will be analyzing a property of an algorithm whose classification is not known for all possible inputs.The ProblemConsider the following a Read More
posted @ 2013-05-29 19:19 javawebsoa Views(204) Comments(0) Diggs(0)
布局以及效果图片代码Strings.xml------------------------------------------------------------------------------------<?xml version="1.0" encoding="utf-8"?> <resources> <string name="app_name">day01_msm</string> <string name="action_settings"> Read More
posted @ 2013-05-29 19:18 javawebsoa Views(205) Comments(0) Diggs(0)
在pub闲逛时看到这么一个问题: 开发人员反应,用pl/sql developer查询mchnt这张IOT表特别慢,但其它表都很快,具体情况如下: 1、表数据量很少 select count(1) from ap07.mchnt; COUNT(1) ---------- 12 2、mchnt表的pk index的段信息: ------------------Basic Info--------------------- segment_name............................PK_MCHNT segment_type........................... Read More
posted @ 2013-05-29 19:16 javawebsoa Views(274) Comments(0) Diggs(0)
1、什么是JSF: JSF规范本身就是JavaEE5的MVC规范,它提倡以桌面组件的方式来隐藏传统web开发的HTTP细节,允许开发者以传统 桌面编程的方式开发web应用。JSF通过将托管Bean(Managed-Bean)的属性或方法绑定到页面组件的Value属性或 Action属性,这样就可以很方面地实现系统的MVC控制。 2、JSF规范的实现: sun公司已JSF规范提供了实现,即SUN的参考实现,即JSF RI,还用一个是Apache组织的实现MyFaces,MyFaces 在实现了JSF RI的基本功能外... Read More
posted @ 2013-05-29 00:01 javawebsoa Views(1806) Comments(1) Diggs(0)
描述:将最小公倍数分解质因子,最小的和便为各个质因子的相应次方数之和。 (1)当N是素数的时候,输出N+1 (2)当只有单质因子时或者N不被除尽时,质因子相应次方和+N最后的数;#include <cstdio>#include <cmath>int main(){ // freopen("a.txt","r",stdin); int n,t=0,count,m,p,q; long long len; while(scanf("%d",&n)!=EOF) { if(!n) break; printf(& Read More
posted @ 2013-05-28 23:59 javawebsoa Views(169) Comments(0) Diggs(0)
点击打开链接分析:A*算法主要由是估价函数f(n)=g(n)+h(n);其中g(n)代表当前的实际代价。h(n)是估计代价。算法的效率直接取决于h(n)的评价性。h(n)的设计思想是无限靠近(极限).在本题中,g(n)代表从初始位置到当前x点所付出的代价。h(n)代表从当前x点到目标位置的估计代价。本题关键是怎样求h(n),每个点到目标点t不一定联通。也不好估价,巧妙之处是:从目标t到初始位置s的最短路。即反向求最短路。这样h(n)的值是最低评估了。代码;#include<cstdio>#include<queue>#include<cstring>#def Read More
posted @ 2013-05-28 23:57 javawebsoa Views(261) Comments(0) Diggs(0)
上一页 1 ··· 139 140 141 142 143 144 145 146 147 ··· 454 下一页