上一页 1 ··· 94 95 96 97 98 99 100 101 102 ··· 455 下一页
引言之前,曾经在orpsoc的平台上,测试验证过其sd card controller的linux的驱动,但是并不是很完美,经过努力,终于在eCos下完成了其全部功能的验证,包括驱动层验证,文件系统的挂载,应用层的创建文件,打开文件,复制文件,源文件与复制文件的比较等,此外,还有创建目录,切换目录等操作。本小节就分享一下整个验证过程。关于基于orpsoc+linux下的sd card controller验证,请参考:http://blog.csdn.net/rill_zhen/article/details/9111213 1,硬件部分1>基本信息本次验证,采用的是最初的orpsoc的 Read More
posted @ 2013-07-18 18:24 javawebsoa Views(566) Comments(0) Diggs(0)
扩展问题:编写一个函数,给定一个链表的头指针,要求只遍历一次,将单链表中的元素顺序反序。#include #include #include #include using namespace std;struct node{ int data; node *next;};void reverselist(node* &head){ node *p,*q; p=head->next; q=head->next->next; if(q==NULL)return; //若链表只有一个元素,则不操作 p->next=NULL; while(q->next!=NUL Read More
posted @ 2013-07-18 18:22 javawebsoa Views(258) Comments(0) Diggs(0)
题目地址:http://poj.org/problem?id=3892 题目大意:RSA分解。 这儿的N比较大,要用高精度,如果一般的肯定分解不了,但是这儿有一个限制 |q-kp|T*T 那么T++ 如果V*V+4kn<T*T 那么V++ 如果V*V+4kn==T*T 就解方程。 然后就剩下高精度了。。。。 Read More
posted @ 2013-07-18 18:20 javawebsoa Views(204) Comments(0) Diggs(0)
Problem Description Mo and Larry have devised a way of encrypting messages. They first decide secretly on the number of columns and write the message (letters only) down the columns, padding with extra random letters so as to make a rectangular array of letters. For example, if the message is “There Read More
posted @ 2013-07-18 18:19 javawebsoa Views(253) Comments(0) Diggs(0)
想信很多人都听过他的课,我顺手画了张导图 Read More
posted @ 2013-07-17 21:30 javawebsoa Views(206) Comments(0) Diggs(0)
打开Eclipse,Window->Preferences->Java 点Edit按钮后弹出: 点Source Attachment后弹出: 选择Java安装路径下的src.zip文件即可跟Java源码关联 Read More
posted @ 2013-07-17 21:28 javawebsoa Views(248) Comments(0) Diggs(0)
Python is object-orientedStructure supports such concepts as polymorphism , operation overloading , and multiple inheritanceIt's free(Open Source)Online Python community is hugeIt's portablePython runs virtually every major platform used todayAs long as you have a compatible Python interpret Read More
posted @ 2013-07-17 21:27 javawebsoa Views(219) Comments(0) Diggs(0)
#include using namespace std;int main(int argc, char *argv[]){ int j,k,m=0,flag; long long s,n,i; while(cin>>n) { s=0;flag=0; if(n==0) break; j=n; for(i=2;i*i<=j;i++) { k=1; if(n%i==0) flag++; while(n%i==0) k*=i,n/=i; if(k!=1) s+=k; } if(n!=1&&j!=n) s+=n;//分解出来n不为0时 if(j==n) s+=n+.. Read More
posted @ 2013-07-17 21:24 javawebsoa Views(135) Comments(0) Diggs(0)
(1)时间日期问题: db2中‘2013-07-17 00:02:55’ oracle中to_date('2013-07-17 00:02:55' , 'YYYY-MM-DD HH24:MI:SI' )(2)字符与数字问题:db2中varchart() 与 bigint有有兼容的地方。在oracle中必须将to_chart('543534534')(3)hibernate映射文件:db2中varchar(1)可与hibernate中的配置文件类型Boolean对应,但oracle中必须是number(1)(4)递归函数问题:(5)处理字符串问题: Read More
posted @ 2013-07-17 21:22 javawebsoa Views(292) Comments(0) Diggs(0)
在做一个图片预览中图的东西,遇到一个问题,就是要判断远程文件是否存在(不是同一台服务器)。 代码如下: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 ... Read More
posted @ 2013-07-17 21:18 javawebsoa Views(449) Comments(0) Diggs(0)
上一页 1 ··· 94 95 96 97 98 99 100 101 102 ··· 455 下一页