看下面的代码,输出的结构是什么呢?#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
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
别忘了在xml中配置UserServletregist.js 1 $(function() { 2 /* 3 * 1. 得到所有的错误信息,循环遍历之。调用一个方法来确定是否显示错误信息! 4 */ 5 $(".errorClass").each(fun...
分类:
其他好文 时间:
2015-08-27 22:52:09
阅读次数:
274
目前支持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
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
泛型注:本文详细讲解泛型,对写一些公共方法,共用的东西的时候很有帮助。想成为一个优秀的程序员吗?这个必须掌握泛型代码可以让你写出根据自我需求定义、适用于任何类型的,灵活可重用的函数和类型。下面直接看一个简单的示例 , 泛型其实就是在写的时候不指定是哪种类型 , 只有再用得时候才指定类型 ,这些类型可以给一些限定。例如 Array Dictionary 等 写一个简单的交换数据的方法,不限定类型fun...
分类:
编程语言 时间:
2015-08-27 02:15:40
阅读次数:
322
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
//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