码迷,mamicode.com
首页 >  
搜索关键字:fun    ( 10813个结果
delegate, event - 里面涉及的参数类型必须完全一致,子类是不行的
public void TestF() { Test += Fun; } public void Fun(Person p) { } // 如 Person变成 SubPerson,则报错。。public void Fun(SubPerson p) { } public event A...
分类:其他好文   时间:2014-07-24 21:39:32    阅读次数:192
P73
#include void fun(int *a,int *n) { int i,j=0; for(i=1;i<=1000;i++) if((i%7==0||i%11==0)&&i%77!=0) a[j++]=i; *n=j; } void main() { int aa[1000],n,k; fun(aa,&n); for(k=0;k<n;k++) if((k+1)%...
分类:其他好文   时间:2014-07-24 17:37:46    阅读次数:205
C、C++编译,链接,extern链接
1 //b.cpp 2 3 #inlcude 4 5 void b() 6 { 7 std::cout<<"fun b"; 8 } 9 10 //a.cpp11 extern void b();12 13 int main()14 {15 b();16 return ...
分类:编程语言   时间:2014-07-24 12:12:05    阅读次数:241
HDU 4737 A Bit Fun
题意:定义F(i,j)为数组a中从ai到aj的或运算,求使F(i,j)#include#include#include#include#include#include#define ll long long#define len 31using namespace std;int num[32];i...
分类:其他好文   时间:2014-07-24 10:09:13    阅读次数:239
P66
#include char fun(char ch) { if(ch>='0'&&ch<='9') return '9'-(ch-'0'); } main() { char c1,c2; printf("\nThe result:\n"); c1='2';c2=fun(c1); printf("c1=%c c2=%c\n",c1,c2); c1='8';c2=fun(c1); p...
分类:其他好文   时间:2014-07-23 13:29:46    阅读次数:204
P69
#include void fun(char *s,int *t) { int i,n=0; for(i=0;s[i]!=0;i++) if(s[i]>='0'&&s[i]<='9') n++; *t=n; } main() { char s[80]="ass4qd54ad7"; int t; printf("\nThe original string is:%s\n",s)...
分类:其他好文   时间:2014-07-23 13:29:16    阅读次数:252
P71
#include void *fun(char a[]) { int i; for(i=0;a[i];i++) if(a[i]>='a'&&a[i]<='z') a[i]=a[i]-32; return (a); } main() { char a[65]; gets(a); printf("\n%s\n",fun(a)); }...
分类:其他好文   时间:2014-07-23 13:28:16    阅读次数:193
jQuery-formvalidatior
下载API帮助、源码、示例 http://files.cnblogs.com/wzmaodong/formValidator4.0.1.zip 示例代码 <script?type="text/javascript"> $(document).ready(function(){ ?$.formValidator.initConfig({onError:fun...
分类:Web程序   时间:2014-07-23 00:33:57    阅读次数:400
关于typedef声明新类型名
typedef作用是用简单的类型名代替复杂的类型名,这样易于理解,方便表示。如 typedef int Integer 指定Integer为类型名,作用于int 相同 Integer i 与 int i 等价。 复杂点的情况是定义函数指针,如 typedef void (*fun)(vo...
分类:其他好文   时间:2014-07-22 22:53:32    阅读次数:210
P64
#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:"); sc...
分类:其他好文   时间:2014-07-22 22:34:12    阅读次数:201
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!