上一页 1 ··· 361 362 363 364 365 366 367 368 369 ··· 455 下一页
html5的canvas写一个简单的画板程序 思路:获得按下时候的坐标ctx.moveTo(e.clientX-10,e.clientY-10)然后鼠标移动的时候就不断的画线,!isDown||ctx.lineTo(e.clientX-10, e.clientY-10, 5, 5)鼠标放开的时候,自然就要吧isDown设置为false了。 然后就总结一下画线的关键步骤好了。 第一步是取得画布。 第二步是开始画线。beginPath() 第三步是移动线条moveTo(),lineTo()。 第四步就是画线stroke()。 代码:<!DOCTYPE html><html lan Read More
posted @ 2013-04-01 18:44 javawebsoa Views(531) Comments(0) Diggs(0)
1. HOST to Controller2. HCI3. L2CAP Read More
posted @ 2013-04-01 18:42 javawebsoa Views(193) Comments(0) Diggs(0)
自己做的图片,自定义的SeekBar,做得有点丑,大家将就着看看,最近有些忙,这个播放器一直没怎么去加功能,大家有兴趣的自己下载看看,有什么建议和意见,非常欢迎提出来,只写了三分之一,简单地从数据库里提取音乐文件信息,显示,点击播放,基本的上一首,下一首,播放模式,显示歌词功能,列表只实现了前三个,我的列表没有实现,歌词文件要和歌曲文件放在同一个文件夹大家可以加上如下功能:1.用SharePrefences保存从数据库提取出来的数据,第一次运行时从数据库中提取,第二次以后就从SharePrefences里提取数据 ,2.同样的,用SharePrefences保存退出时的状态,如播放的曲目,播放 Read More
posted @ 2013-04-01 18:40 javawebsoa Views(297) Comments(0) Diggs(0)
Project-->Addtoproject-->找到$(BCB)\lib\BCBSMP.bpi-->确定 Read More
posted @ 2013-04-01 18:38 javawebsoa Views(237) Comments(0) Diggs(0)
原文地址:Incremental Differential vs. Incremental Cumulative Backups 问题:RMAN differential Backups 是什么?它和 RMAN cumulative Backups 有啥区别?它们俩和 RMAN incremental backup 一样吗? 答案: Differential 和 cumulative 是 RMAN incremental backups 的两种类型。有时候、RMAN differential backups 被叫做 RMAN cumulative Backups 然而、RMAN... Read More
posted @ 2013-04-01 18:36 javawebsoa Views(358) Comments(0) Diggs(0)
(注意:此时应该是下载到nor flash) 准备工作: 1.安装超级终端minicom,并且进行配置2.安装下载工具dnw2,大家可以在这里下载:http://download.csdn.net/detail/chenqiai0/5209704 (注意:我们可以将dnw2拷贝到/usr/local/bin下,这样我们可以在整个环境仲使用dnw2进行下载了) 3.连线(注意:不要将jtag线连接上,否则超级终端不会出现FriendlyARM BIOS 2.0 for 2440)4.打开超级终端:sudo minicom,出现下述界面: 当我们选择d的时候就会出现:USB host is con Read More
posted @ 2013-04-01 18:34 javawebsoa Views(330) Comments(0) Diggs(0)
获得日历时间 我们可以通过time()函数来获得日历时间(Calendar Time),其原型为: time_t time(time_t * timer); 如果你已经声明了参数timer,你可以从参数timer返回现在的日历时间,同时也可以通过返回值返回现在的日历时间,即从一个时间点(例如:1970年1月1日0时0分0秒)到现在此时的秒数。如果参数为空(NUL),函数将只通过返回值返回现在的日历时间,比如下面这个例子用来显示当前的日历时间: #include "time.h" #include "stdio.h" int main(void) { st Read More
posted @ 2013-04-01 18:33 javawebsoa Views(259) Comments(0) Diggs(0)
5构造,解构,拷贝语意学 Semantics of Construction, Destruction, Copy纯虚拟函数的存在 Presence of Pure VF>pure virtual function可以被定义和调用invoke: 只能被静态调用statically, 不能经由虚拟机调用; Ex. inline void Abstract_base::interface() const {...} Abstract_base::interface();>pure virtual destructor一定要定义, 每一个derived class destructor会 Read More
posted @ 2013-04-01 18:30 javawebsoa Views(299) Comments(0) Diggs(0)
2.堆栈我们已经对堆栈这种数据结构有了初步认识。堆栈是一组元素的集合,类似于数组,不同之处在于,数组可以按下标随机访问,这次访问a[5]下次可以访问a[1],但是堆栈的访问规则被限制为Push和Pop两种操作,Push(入栈或压栈)向栈顶添加元素,Pop(出栈或弹出)则取出当前栈顶的元素,也就是说,只能访问栈顶元素而不能访问栈中其它元素。如果所有元素的类型相同,堆栈的存储也可以用数组来实现,访问操作可以通过函数接口提供。看以下的示例程序。例12.1.用堆栈实现倒序打印#include <stdio.h>char stack[512];int top = 0;void push(ch Read More
posted @ 2013-04-01 18:29 javawebsoa Views(271) Comments(0) Diggs(0)
@echo offrem Licensed to the Apache Software Foundation (ASF) under one or morerem contributor license agreements. See the NOTICE file distributed withrem this work for additional information regarding copyright ownership.rem The ASF licenses this file to You under the Apache License, Version 2.0re. Read More
posted @ 2013-03-31 19:36 javawebsoa Views(292) Comments(0) Diggs(0)
上一页 1 ··· 361 362 363 364 365 366 367 368 369 ··· 455 下一页