摘要:
UML类图关系大全1、关联双向关联:C1-C2:指双方都知道对方的存在,都可以调用对方的公共属性和方法。在GOF的设计模式书上是这样描述的:虽然在分析阶段这种关系是适用的,但我们觉得它对于描述设计模式内的类关系来说显得太抽象了,因为在设计阶段关联关系必须被映射为对象引用或指针。对象引用本身就是有向的,更适合表达我们所讨论的那种关系。所以这种关系在设计的时候比较少用到,关联一般都是有向的。使用ROSE 生成的代码是这样的:classC1...{public:C2*theC2;};classC2...{public:C1*theC1;};双向关联在代码的表现为双方都拥有对方的一个指针,当然也可以是 阅读全文
阅读排行榜
poj 1654 Area ----- 计算几何
2012-04-19 19:55 by java环境变量, 349 阅读, 收藏,
摘要:
AreaTime Limit:1000MSMemory Limit:10000KTotal Submissions:9899Accepted:2800DescriptionYou are going to compute the area of a special kind of polygon. One vertex of the polygon is the origin of the orthogonal coordinate system. From this vertex, you may go step by step to the following vertexes of th 阅读全文
poj-2503 Babelfish
2012-03-14 02:28 by java环境变量, 349 阅读, 收藏,
摘要:
BabelfishTime Limit:3000MSMemory Limit:65536KTotal Submissions:22593Accepted:9698DescriptionYou have just moved from Waterloo to a big city. The people here speak an incomprehensible dialect of a foreign language. Fortunately, you have a dictionary to help you understand them.InputInput consists of 阅读全文
盒子支付全球独家首发评测
2012-01-19 11:04 by java环境变量, 346 阅读, 收藏,
摘要:
前晚雷锋网拿到了盒子支付的内测版本,我们做了一个上手体验,并将这一过程做了记录,在此跟各位关注移动支付的读者一起分享,如果你也受邀拿到盒子内测,发现什么问题,可以在文章下方留言告诉我们。 01、评测设备 评测机器:HTC Desire 系统:Android 2.2 银行卡:中信银行信用卡 02、 将盒子插在音频接口处,在手机屏幕顶部会出现一个耳机的图标,左上角显示未登陆。我们也看到看到这款应用叫做“全民付”。 03、 由于已经注册了账号,所以直接选择登陆,输入账号密码即可。 04、 登陆成功,左上角显示欢迎回来。 05、 我们选择了余额查询,在屏幕中间有白色光标闪烁,提... 阅读全文
无向图邻接表怎么建,求指点!! HDU 2544 最短路(Dijkstra、结题报告 精简版!)
2012-08-06 01:42 by java环境变量, 345 阅读, 收藏,
摘要:
转载请注明出自cxb569262726:http://write.blog.csdn.net/postedit题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=2544代码:#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#define MAXN 105
#define INF 100000
using namespace std;
int map[MAXN][MAXN],used[105],d[105 阅读全文
浙公网安备 33010602011771号