一直对jdk的ref使用比较模糊,早上花了点时间简单的整理了下,也帮助自己理解一下泛型的一些处理。java中class,method,field的继承体系java中所有对象的类型定义类Type说明:Type : Type is the common superinterface for all ty...
分类:
编程语言 时间:
2015-02-15 11:57:22
阅读次数:
227
1、Gamma函数:Gamma函数matlab代码:x=0:0.5:5syms ty=int(t.^(x-1)*exp(-t),0,inf)y=double(y)plot(x,y,'r-o','linewidth',1)图像如下:2、lgΓ(x)函数matlab代码:x=0:0.1:5syms ty...
分类:
其他好文 时间:
2015-02-11 12:13:01
阅读次数:
612
对map最初的印象,源于王建德老师在山东NOIP夏令营上那销魂的一句“map,i,j”(音:唛颇,挨,杰= =)ruka上对map并没有讲很多,TY菌说map主要用来写哈希(虽然她曾用它写过邻接矩阵= =循环嵌套map intOrz),而李晨和里奥甚至表示基本不用map。但是既然有这一项奇妙的东西,想必是有用的,把前两节学的总结一下。
map是一个映射,也称关联数组,是一周关联式容器。和...
分类:
其他好文 时间:
2015-02-10 11:19:47
阅读次数:
183
template
class UnSignType
{
//如果缺少Type 请用UNSIGN_TYPE宏添加偏特化
};
#define UNSIGN_TYPE(t) template
struct UnSignType { typedef unsigned t TYPE;};
UNSIGN_TYPE(char)
UNSIGN_TY...
分类:
其他好文 时间:
2015-02-05 13:43:11
阅读次数:
100
软件设计抽象倒置(Abstraction inversion):不把用户需要的功能直接提供出来,导致他们要用更上层的函数来重复实现用意不明(Ambiguous viewpoint):给出一个模型(通常是OOAD,面向对象分析与设计)却没有指出用意何在大泥球(Big ball of mud):没有清晰...
分类:
其他好文 时间:
2015-02-04 20:23:22
阅读次数:
158
java.lang.VerifyError: (class: javax/swing/plaf/metal/MetalLookAndFeel, method: getLayoutStyle signature: ()Ljavax/swing/LayoutStyle;) Wrong return ty...
#include
#include
using namespace std;
char a[100][100];
int b[100][100],n,m;
int x[]={0,-1,-1,-1,0,1,1,1};
int y[]={1,1,0,-1,-1,-1,0,1};
void dfs(int i,int j)//深度搜索
{
int tx,ty,k;
b[i][j]=0;
for...
分类:
其他好文 时间:
2015-01-28 11:08:30
阅读次数:
168
transform:该属性设置HTML组件横向上移动tx距离,纵向上移动ty距离。其中ty参数可以省略,如果省略ty参数,则ty默认为0translate(tx,ty):该函数设置HTML组件横向上移动tx个距离,纵向上移动ty距离。translateX:该函数设置HTML组件横向上移动tx个距离。...
分类:
Web程序 时间:
2015-01-25 23:56:54
阅读次数:
165
#include#include#include#includeusing namespace std;char mat[20][20];int ans[15];int n;bool ok(int x,int y){ int tx,ty; int ans[15]; int temp...
分类:
其他好文 时间:
2015-01-25 06:27:34
阅读次数:
106
参考资料:http://blog.csdn.net/greytree/article/details/354530刚才写的程序报错ERROR C2872(CL.exe)原因很简单ZThread有定义Task我自己也定义了Task但是在使用的时候用了using namespace ZThread,却#...
分类:
其他好文 时间:
2015-01-19 06:46:15
阅读次数:
165