自定义类加载器是在是血的不怎明白这里只学会了一个简单的加密解密方法//定义一个加密方法public static void md(InputStream inputStream,OutputStream outputStream) throws Exception{int b = 0;while((...
分类:
其他好文 时间:
2014-07-22 00:21:33
阅读次数:
196
Scissor Lift tables are not just required for lifting the objects but also for the proper positioning of the material while working to prevent work re...
分类:
其他好文 时间:
2014-07-22 00:16:33
阅读次数:
269
linux内核打印"BUG: scheduling while atomic"和"bad: scheduling from the idle thread"错误的时候,通常是在中断处理函数中调用了可以休眠的函数,如semaphore,mutex,sleep之类的可休眠的函数,而linux内核要求在中...
分类:
系统相关 时间:
2014-07-22 00:12:34
阅读次数:
690
#include
void fun(long s,long *t)
{
int d;
long s1=1;
*t=0;
while(s>0)
{
d=s%10;
if(d%2!=0)
{
*t=d*s1+*t;s1*=10;
}
s/=10;
}
}
void main()
{
long s,t;
printf("\nPlease enter s:");
...
分类:
其他好文 时间:
2014-07-22 00:08:33
阅读次数:
189
//$str 待截取的字符串//$len 截取的字符个数//$chars 已经截取的字符数//$res 保存的字符串//$chars 保存已经截取的字符串个数//$offset 截取的偏移量//$length 字符串的字节数//若$len>$str的字符个数,造成无谓的while循环,($off.....
分类:
其他好文 时间:
2014-07-22 00:00:36
阅读次数:
220
private static void prime(int i){
int j = 2;
while(true){
while(i%j == 0 && i != j){
System.out.println("Prime num " + j);
i = i/j;
}
if(i == j){
...
分类:
其他好文 时间:
2014-07-21 23:30:20
阅读次数:
426
挺水的一道题,规律性很强,在数组中找出最大的数max,用max/m计算出倍数t,然后再把数组中的书都减去t*m,之后就把数组从后遍历找出第一个大于零的就行了
#include
#include
using namespace std;
int main(){
// freopen("in.txt","r",stdin);
int a[105],n,m;
while(~sca...
分类:
其他好文 时间:
2014-07-21 23:29:23
阅读次数:
312
#include
void fun(char *p,char *b)
{
int i,k=0;
while(*p)
{
i=1;
while(i<=3 && *p)
{
b[k]=*p;
k++;p++;i++;
}
if(*p)
{
b[k++]=' ';
}
}
b[k]='\0';
}
void main()
{
char a[80],b...
分类:
其他好文 时间:
2014-07-21 23:29:22
阅读次数:
235
直接套KMP模板
#include
#include
#include
using namespace std;
int s[1000005],w[10005],next[10005];
int b,c;
void show()
{
int i,j;
i=0;
next[0]=-1;
j=-1;
while(i<c)
{
if(j=...
分类:
其他好文 时间:
2014-07-21 23:29:03
阅读次数:
334
[oracle@jp ogg]$ ./ggsci
./ggsci: error while loading shared libraries: /u01/app/oracle/ogg/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied
关闭selinux,首先修改参数
[root@jp ...
分类:
数据库 时间:
2014-07-21 23:27:50
阅读次数:
294