码迷,mamicode.com
首页 >  
搜索关键字:fun    ( 10813个结果
C++:宏替换的误区
看下面的代码,输出的结构是什么呢?#include using namespace std; #define NUM 0void fun() { #undef NUM #define NUM 100 } int main() { fun(); cout<<"NUM="<<NUM<<endl;//NUM=100; return 0; }没错...
分类:编程语言   时间:2015-08-28 17:50:14    阅读次数:194
pat1023. Have Fun with Numbers (20)
1023. Have Fun with Numbers (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueNotice that the number 123456789 is a 9-digit number consist...
分类:其他好文   时间:2015-08-28 02:07:52    阅读次数:189
Goods:注册页面之后台数据验证
别忘了在xml中配置UserServletregist.js 1 $(function() { 2 /* 3 * 1. 得到所有的错误信息,循环遍历之。调用一个方法来确定是否显示错误信息! 4 */ 5 $(".errorClass").each(fun...
分类:其他好文   时间:2015-08-27 22:52:09    阅读次数:274
Java LinqCollection 仿Linq的list常用函数
目前支持find,findAll,sort,select,remove等,java不支持lamda函数,因此用接口代替public interface Fun { public T2 process(T1 item);}public interface Predicate { /** * 是否满足....
分类:编程语言   时间:2015-08-27 21:06:11    阅读次数:225
用函数实现乘法口诀表,其中口诀表的行数和列数是自己指定
#include<stdio.h>#include<cstdlib>inta;voidfun(inta){ for(inti=1;i<=a;i++) { printf("\n"); for(intj=1;j<=i;j++) { printf("%d*%d=%d",i,j,i*j); } }}intmain(){ scanf("%d",&a); fun(a); printf("\n"); system("pause"); return0;}
分类:其他好文   时间:2015-08-27 19:16:14    阅读次数:124
SPOJ SUBLEX - Lexicographical Substring Search
SUBLEX - Lexicographical Substring Searchno tagsLittle Daniel loves to play with strings! He always finds different ways to have fun with strings! Kno...
分类:其他好文   时间:2015-08-27 09:34:52    阅读次数:173
swift详解之十二-----------------泛型
泛型注:本文详细讲解泛型,对写一些公共方法,共用的东西的时候很有帮助。想成为一个优秀的程序员吗?这个必须掌握泛型代码可以让你写出根据自我需求定义、适用于任何类型的,灵活可重用的函数和类型。下面直接看一个简单的示例 , 泛型其实就是在写的时候不指定是哪种类型 , 只有再用得时候才指定类型 ,这些类型可以给一些限定。例如 Array Dictionary 等 写一个简单的交换数据的方法,不限定类型fun...
分类:编程语言   时间:2015-08-27 02:15:40    阅读次数:322
SICP阅读笔记(一)
2015-08-25 008 Foreword QUOTE: I think that it's extraordinarily important that we in computer science keep fun in computing...... What's in your han....
分类:其他好文   时间:2015-08-26 09:19:59    阅读次数:184
8-25练习————递归
//1.编写一个函数实现n^k,使用递归实现/*#include<stdio.h>intfun(constintn,intk){ if(k==0) return1;else returnn*fun(n,k-1);}intmain(){ printf("%d\n",fun(2,10)); printf("%d\n",fun(3,3)); printf("%d\n",fun(2,0));return0;}*/2.写一个递归函数DigitSum(n),..
分类:其他好文   时间:2015-08-26 00:05:19    阅读次数:177
关于虚函数
typedef void (*fun)(); class A { public: A() { cout << "class A default constructor called" << endl; a = 0; } A(int param) { cout << "class A constructor called" << endl; a = param; } ~...
分类:其他好文   时间:2015-08-25 23:44:03    阅读次数:143
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!