RTC(Real-Time Clock)实时时钟为操作系统提供了一个可靠的时间,并且在断电的情况下,RTC实时时钟也可以通过电池供电,一直运行下去。 RTC通过STRB/LDRB这两个ARM指令向CPU传送8位数据(BCD码)。数据包括秒,分,小时,日期,天,月和年。RTC实时时钟依靠一个外部的32 ...
分类:
其他好文 时间:
2017-07-16 11:12:20
阅读次数:
230
本系列全部文章能够在这里查看http://blog.csdn.net/cloud_castle/article/category/2123873 接上文 Qt5官方demo解析集12——Qt Quick Particles Examples - CustomParticles 先唠下嗑,在上文Cus ...
分类:
其他好文 时间:
2017-07-16 10:03:07
阅读次数:
180
from sys import exitfrom random import randintclass Scene(object): def enter(self): print "This scene is not yet configured.Subclass it and implement ... ...
分类:
编程语言 时间:
2017-07-16 00:47:25
阅读次数:
304
/* Copyright (c) 2007 Scott Lembcke * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated ...
分类:
编程语言 时间:
2017-07-15 19:05:15
阅读次数:
227
No matter what have happened today, the sun will just rise in the morning of tomorrow. 无论今天发生了什么,明天早上太阳依然会照常升起。 Let the past be past, you shouldn't be ...
分类:
其他好文 时间:
2017-07-15 16:44:01
阅读次数:
168
#include <iostream>#include <cstdio>#include <cstring>#include <stack>using namespace std;const int maxn=1000+5;string s1,s2;stack<char> s;stack<doubl ...
分类:
其他好文 时间:
2017-07-15 11:26:42
阅读次数:
186
键盘事件包含onkeydown、onkeypress和onkeyup这三个事件 事件初始化 function keyDown(){} document.onkeydown = keyDown; //论按下键盘上的哪个键,都将调用KeyDown()函数。 DOM标准下 function keyDown ...
分类:
编程语言 时间:
2017-07-14 18:49:20
阅读次数:
206
页面效果 勾选一个或多个用户,或点击全选框,然后单击【批量删除】,弹出确认窗口。确定则删除,取消则不删除: 实现步骤 1.JSP页面的js函数 1.1添加按钮【批量删除】单击事件触发的js函数,有两种实现方式: 1.1 DOM对象实现 1.2 jQuery对象实现 function deleteAl ...
分类:
其他好文 时间:
2017-07-13 22:47:30
阅读次数:
180
题意: 考虑模板串B和给定串A,给定K,对于模板串上给定位置j的字符,如果能在给定串上i左右K个字符内找到相同字符,则说可以匹配。 问有多少匹配。 解法: 考虑对于每一种字符分开求。 对于当前字符ch,将B串中为此字符的位置标为1其他位置为0,将A串中所有可以匹配ch的位置标为1,其他为0,这样 记 ...
分类:
其他好文 时间:
2017-07-13 21:59:03
阅读次数:
237
近期在调战斗时的动画与特效。Unity3D对加/减速提供了Time.timeScale支持。可是,timeScale提供的是全局的时间缩放,而我们有些动作或动画是不希望被timeScale加减速的。比方,《刀塔传奇》中播放大招时。除了大招特效,全部别的动作/动画都暂停。 以下各自是Animation ...
分类:
编程语言 时间:
2017-07-13 20:29:55
阅读次数:
332