06 2011 档案
摘要:1 public void read(Element e) { 2 if (e.nodeCount() > 0) { 3 Iterator<?> it = e.elementIterator(); 4 while (it.hasNext()) { 5 Element ele = (Element) it.next(); 6 read(ele); 7 System.out.println("Element :" + ele.getName() + " Path " 8 + ele.getUniquePath()); 9 10 if (el
阅读全文
摘要:我用的ECLIPSE 3.6 HELIOS版本、 安装ADT以后一切使用正常,唯一不足的就是自动提示的时候容易无法响应, 网上说这个是个BUG 问题出在核心包org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar 上上网下了个可以用的 4390KB的那个 替换掉PLUGIN里面的 重启后就好了下面这篇文章是解决这个问题的方法http://stackoverflow.com/questions/4975827/eclipse-3-6-frequently-stalls-on-auto-complete顺便查了一下 ECLIPSE的版本号和代号Eclipse 3.1 版
阅读全文
摘要:一直以来想把ANDROID2.1 刷成2.2 今天端午假期正好有空于是就准备了一下开始刷机一开始看到官网上有升级的UPDATE.ZIP 以为挺好的, 没想到还没刷到一半就出现了两个错误1.can't open /cache/recovery/command (这个问题不是问题 第二个才是)2.assert failed:apply_patch_check("/system/app/4in1.apk","4180490fc6c42ca8e76239c861c8a87cb53e875b5","761e43e8c3eaa4191f77fa66
阅读全文
摘要:1 #include <iostream> 2 3 using namespace std; 4 5 int main(){ 6 int a,b,c; 7 int f[100]; 8 int i; 9 while(cin>>a>>b>>c,a+b+c){10 f[1]=f[2]=1;11 for(i=3;i<100;i++){12 13 f[i]=(f[i-1]*a+f[i-2]*b)%7;14 15 if(f[i]==1&&f[i-1]==1) break;16 //cout<<f[i-2]<<en
阅读全文
摘要:1 #include <iostream> 2 #include <string> 3 #include <vector> 4 using namespace std; 5 struct v{ 6 string s; 7 int value; 8 }; 9 10 vector<v> vv;11 vector<v> ::iterator it;12 13 int main(){14 int n;15 string s;16 string r;17 int i;18 int max=0;19 int find=0;20 21 while(
阅读全文
摘要:诶么、 终于AC了 - -最长子序列的问题加上了起始点和终止点 (多解的情况下 以第一个为准)一开始没有考虑到负数的情况 悲剧了 。看来以后做题得多考虑几组测试数据,考虑全面点。还有就是int s[100010], r[100010], p[100010];和int s[100010];int r[100010];int p[100010];在VC6下不一样呢、 1 #include <iostream> 2 3 using namespace std; 4 int s[100010], r[100010], p[100010]; 5 6 int max(int a,int b){
阅读全文
浙公网安备 33010602011771号