码迷,mamicode.com
首页 >  
搜索关键字:fun    ( 10813个结果
PwniumCTF2014 - JJSN总结
Write-ups 本文最早发布在TSRC,详细地址:http://security.tencent.com/index.php/blog/msg/55 Forensics USB is FUN 这道题目就给出了一个文件下载地址:http://41.231.53.40/for1.pcapng 文件后...
分类:Web程序   时间:2014-07-22 22:45:55    阅读次数:636
P61
#include void fun(char *a) { if(*a) {fun(a+1); printf("%c",*a); } } main() { char s[10]="asdf"; printf("处理前的字符串=%s\n处理后的字符串=",s); fun(s); printf("\n"); }...
分类:其他好文   时间:2014-07-22 22:38:55    阅读次数:237
P56
#include unsigned long fun(unsigned long n) { unsigned long x=0;int t; while(n){ t=n%10; if(n%2==0) x=10*x+t; n=n/10; } return x; } main() { unsigned long n=-1; while(n>99999999||n<0){ ...
分类:其他好文   时间:2014-07-22 22:38:53    阅读次数:174
P53
#include double fun(double q) { int n=2; double s=2.0; while(s<=q) { s=s+(double)(n+1)/n; n++; } return s; } main() { printf("%f\n",fun(50)); }...
分类:其他好文   时间:2014-07-22 22:38:36    阅读次数:136
P50
#include #include int fun (int high) { int sum=0,n=0,j,yes; while((high>=2)&&(n<10)) { yes=1; for(j=2;j<=high/2;j++) if(high%j==0) { yes=0;break; } if(yes) { sum+=high; ...
分类:其他好文   时间:2014-07-22 00:11:34    阅读次数:226
P52
#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
P49
#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
定积分(任意函数求积分)
1 #define eps 1e-8 2 3 double fun(double x) { 4 /*函数部分*/ 5 } 6 7 double Definite_Integral(double a, double b) { 8 double p = eps + 1.0; 9 ...
分类:其他好文   时间:2014-07-20 08:07:07    阅读次数:213
JavaScript 编程珠玑 - 《JavaScript: The good parts》总结(2)
一、扩展函数原型的更好办法://定义下面的通用方法 Function.prototype.method=function(name,func){ this.prototype[name]=func; returnthis; }; //使用上面的通用方法作为工具进行扩展,以免每次扩展都访问Function.prototype.XXX(that‘sugly). Number.method(‘integer‘,fun..
分类:编程语言   时间:2014-07-17 09:44:42    阅读次数:259
setInterval()的三种写法
前言:setInterval("fun()",time)有两个参数;fun()为要执行的函数;time为多久执行一次函数,单位是毫秒;我们做一个简单的例子,就是每隔5s弹出一个“hello”的对话框。先看第一种写法,把方法体抽离出来,以字符串的形式调用函数名,这种写法调用函数名是不能传参的:第二种写...
分类:其他好文   时间:2014-07-16 14:59:04    阅读次数:426
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!