拷贝:对象一定有一个副本深拷:针对所有级别的类型创建独立的副本浅拷:针对本类型的实例的属性成员进行复制,对象中不包含引用类型成员(除字符串以外)没有浅拷与深拷之分案例:namespace
深拷贝与浅拷贝{ [Serializable] public class MyClass : ICloneabl...
分类:
其他 时间:
2014-02-09 22:43:00
收藏:
0 评论:
0 赞:
0 阅读:
416
就是给出一些点边关系, 有虫洞的就是负值。
注意普通道路是双向边。。一开始这里建错图了之后处理用了spfa ,类似模板的一道题题目:WormholesTime Limit: 2000MSMemory
Limit: 65536KTotal Submissions: 26848Accepted: 966...
分类:
其他 时间:
2014-02-09 22:40:30
收藏:
0 评论:
0 赞:
0 阅读:
425
1003. Emergency (25) As an emergency rescue
team leader of a city, you are given a special map of your country. The map
shows several scattered cities...
分类:
其他 时间:
2014-02-09 22:39:40
收藏:
0 评论:
0 赞:
0 阅读:
451
1.差劲的系统是很难修改的。因为很难找到修改点。如果很难找到修改点,程序员就很有可能犯错,从而引入bug。2.如果你发现需要给程序添加一个特性,而代码结构使你无法很方便的达成目的,那就先重构那个程序,使特性的添加比较容易进行。然后再添加特性。3.重构步骤的本质:由于每次修改的幅度都很小,所以任何错误...
分类:
其他 时间:
2014-02-09 22:41:20
收藏:
0 评论:
0 赞:
0 阅读:
269
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=1567此题状态即为各种硬币个数,然后分类讨论即可。#include
#in...
分类:
其他 时间:
2014-02-09 22:38:00
收藏:
0 评论:
0 赞:
0 阅读:
457
很水的一道DP#include #include #include using
namespace std;int a[1010],l,c,n;int dp[1010],cost[1010];int f(int x){ if(x==0)
return 0; else if(x=1;j--){ sum...
分类:
其他 时间:
2014-02-09 22:36:20
收藏:
0 评论:
0 赞:
0 阅读:
358
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=1226#include
#include #include using n...
分类:
其他 时间:
2014-02-09 22:35:30
收藏:
0 评论:
0 赞:
0 阅读:
444
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=531#include
#include #define ll long l...
分类:
其他 时间:
2014-02-09 22:31:20
收藏:
0 评论:
0 赞:
0 阅读:
335
今天遇到了Assertion failure in -[UITableView
_configureCellForDisplay:forIndexPath:]这个错误,一直也没有百度,不料想却弄了一个下午,唉,早知道就百度一下了,呵呵。遇到这个问题的原因是tableView的这个方法返回了空的值,所...
分类:
其他 时间:
2014-02-09 22:28:50
收藏:
0 评论:
0 赞:
0 阅读:
415
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=52水题#include
#include #include #includ...
分类:
其他 时间:
2014-02-09 22:29:40
收藏:
0 评论:
0 赞:
0 阅读:
370
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=643#include
#include #define ll long l...
分类:
其他 时间:
2014-02-09 22:25:30
收藏:
0 评论:
0 赞:
0 阅读:
399
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=1853#include
#include #include using n...
分类:
其他 时间:
2014-02-09 22:26:20
收藏:
0 评论:
0 赞:
0 阅读:
384
希望能一年一篇发到老,当然对象不是程序猿,主要是QQ好友……去年是教大家PS的一些赚钱技巧,今年没什么想法,就教大家制作相册视频吧,我在想着那明年教什么?简单的多媒体基本都说了,莫非教虚拟现实?那又脱离群众了,但又何妨,只是找个方式让自己知道逝去的日子。
这个是大一时制作的,可以看看效果先:http...
分类:
其他 时间:
2014-02-09 22:23:50
收藏:
0 评论:
0 赞:
0 阅读:
447
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=1022#include
#include #include #includ...
分类:
其他 时间:
2014-02-09 22:23:00
收藏:
0 评论:
0 赞:
0 阅读:
385
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=1558#include
#include #include #define...
分类:
其他 时间:
2014-02-09 22:22:10
收藏:
0 评论:
0 赞:
0 阅读:
349
随机偏微分方程Throughout this section, let $(\Omega,
\calF, \calF_t,\ P)$ be a complete filtered probability space satisfying the
usual conditions. 1. Recall...
分类:
其他 时间:
2014-02-09 22:21:20
收藏:
0 评论:
0 赞:
0 阅读:
383
Linux安装笔记首先安装vim :yum install vim安装nginx: 需要pcre
,make 编译安装,安装pcre,需要gcc ,gcc-c++ 使用yum install -y gcc gcc-c++;成功安装了pcre
开始安装nginx 提示缺少zlib library ,y...
分类:
其他 时间:
2014-02-09 22:20:30
收藏:
0 评论:
0 赞:
0 阅读:
367
这是Mac
OS下的一条终端命令,很早以前在网上找到的。个人觉得很实用,就保存了下来。现在分享给大家。以CVS这个文件/文件夹为例子:find . -type d
-name CVS | xargs rm -fr
分类:
其他 时间:
2014-02-09 22:19:40
收藏:
0 评论:
0 赞:
0 阅读:
377
题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=11&page=show_problem&problem=1341注意除以0和溢出的情况#include
#include #incl...
分类:
其他 时间:
2014-02-09 22:18:00
收藏:
0 评论:
0 赞:
0 阅读:
374
本人做项目经理工作多年,感到做这个工作最要紧的就是要明白什么是因地制宜、因势利导,只有最合适的,没有什么叫对的,什么叫错的,项目经理最忌讳的就是完美主义倾向,尤其是做技术人员出身的,喜欢寻找标准答案,耽误了工作进度,也迷茫了自己。以下是本人一些做项目的个人体会,写出来供大家指点,在讨论过程中共同提高...
分类:
其他 时间:
2014-02-09 22:18:50
收藏:
0 评论:
0 赞:
0 阅读:
375