摘要:
HashMap使用key的hashCode()和equals()方法来将值划分到不同的桶里。桶的数量通常要比map中的记录的数量要稍大。这样 每一个桶包含的值会比較少(最好是一个)。当通过key进行查找时,我们能够在常数时间内迅速定位到某个桶(使用hashCode()对桶的数量进行取模) 以及要找的 阅读全文
posted @ 2017-07-13 14:23
yxysuanfa
阅读(2716)
评论(0)
推荐(0)
摘要:
glTF格式初步了解近期看到Qt 3D的进展。偶然了解到了一种新的格式:glTF格式。这样的格式据说比现有的3D格式更加符合OpenGL应用的须要。这引起了我的好奇。于是我在Qt 3D的外部链接中找到了有关glTF的相关链接。上海萌梦信息科技有限公司(微博:http://weibo.com/qtdr 阅读全文
posted @ 2017-07-13 12:58
yxysuanfa
阅读(7280)
评论(0)
推荐(0)
摘要:
Berland has n cities connected by m bidirectional roads. No road connects a city to itself, and each pair of cities is connected by no more than one r 阅读全文
posted @ 2017-07-13 11:48
yxysuanfa
阅读(223)
评论(0)
推荐(0)
摘要:
import sys import pygame from pygame.locals import * import time import math pygame.init() screen=pygame.display.set_mode((500,550)) myfont=pygame.fon 阅读全文
posted @ 2017-07-13 11:16
yxysuanfa
阅读(131)
评论(0)
推荐(0)
摘要:
备忘录模式 数据库的备份,文档编辑中的撤销等功能 #include <iostream> #include <string> #include <vector> using namespace std; //备忘录模式:备忘录对象是一个用来存储另外一个对象内部状态的快照的对象。 //备忘录模式的用意 阅读全文
posted @ 2017-07-13 10:52
yxysuanfa
阅读(309)
评论(0)
推荐(0)

浙公网安备 33010602011771号