摘要: The difference is that an object will be deallocated as soon as there are no strong pointers to it. Even if weak pointers point to it, once the last s 阅读全文
posted @ 2017-06-25 21:04 wzzkaifa 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 题目例如以下: Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared b 阅读全文
posted @ 2017-06-25 19:51 wzzkaifa 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 从1990年開始敲代码。到如今已经快20年了。总结出写出高质量程序的几个要点: ­ 1、開始写之前思路越清晰完整越好。 ­ 2、写的过程中代码一定要规范一致,这种代码便于维护和改动。这个规范一致性包括名称、格式、算法等。­ 3、发现一处错误,马上回忆有没有可能其他地方具有相同的错误(假设你遵循第2条 阅读全文
posted @ 2017-06-25 18:56 wzzkaifa 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 3月31日凌晨2点。瑞士阳光动力2号飞抵我国重庆。 这架阳光动力飞机有什么技术特性呢? 阳光动力2号的翼展71.9米。与空客A380翼展差 不多,可是,其机身重量仅仅有2.3顿,不足空客A380重 量的百分之零点五。阳光动力2号飞机,个头非常大,重量非常 轻,机身骨架所有使用了碳素新材料,又轻又硬。 阅读全文
posted @ 2017-06-25 08:11 wzzkaifa 阅读(166) 评论(0) 推荐(0) 编辑