假设仅仅使用PlaySound()这个API函数来表现声音效果的话,那么就无法表现出声音的混音效果,由于PlaySound在播放还有一个声音时,必定会导致现有声音的停止。因此,使用PlaySound()要想构建出一个包括丰富音乐与音效的游戏世界是不现实的。 而DirectSound就能够完美的解决....
分类:
其他好文 时间:
2014-08-07 22:01:46
阅读次数:
382
原文地址:http://irving-wei.iteye.com/blog/1076097上篇介绍了CheckBox,这节,将接触到的是RadioGroup和RadioButton。它们的关系是:一个RadioGroup对应多个RadioButton,而一个RadioGroup中的RadioButt...
分类:
移动开发 时间:
2014-08-07 22:01:06
阅读次数:
339
1 package it.cast.jdbc; 2 3 import java.sql.Connection; 4 import java.sql.PreparedStatement; 5 import java.sql.ResultSet; 6 import java.sql.SQLExcep.....
分类:
其他好文 时间:
2014-08-07 21:59:00
阅读次数:
207
验证码生成文件CheckCodeImg.ashx:然后前台有:便可获得验证码若想每次获得不同验证码,又防止浏览器缓存,可以这样.ashx?"+new Date()
分类:
其他好文 时间:
2014-08-07 21:57:40
阅读次数:
267
1 登录github, 点击自己感兴趣的repository的fork按钮,这样自己的github主页会有一个拷贝。2 在自己本地修改同时保持和原来的repository同步:git remote -v, 看看自己当前git repository的configure, origin 表示自己的rep...
分类:
其他好文 时间:
2014-08-07 21:55:50
阅读次数:
220
http://www.jb51.net/article/32339.htmandroid中提供了4中动画: AlphaAnimation 透明度动画效果 ScaleAnimation 缩放动画效果 TranslateAnimation 位移动画效果 RotateAnimation 旋转动画效果 本节...
分类:
移动开发 时间:
2014-08-07 21:55:20
阅读次数:
308
稀疏表示是近期几年信号处理领域的热点之中的一个,简单来说,它事实上是一种对原始信号的分解过程,该分解过程借助一个事先得到的字典(也有人称之为过完备基,overcompletebasis,后面会介绍到),将输入信号表示为字典的线性近似的过程。即:
分类:
其他好文 时间:
2014-08-07 21:55:10
阅读次数:
335
今天要实现的是一个跟随手指的小球,说白了就是让小球按着手指滑动的轨迹运动,实现起来还是比较容易的。用到的类是drawView,我们先自定义一个DrawView组件。DrawView.java:package cn.csdn.android.view;import android.content.Co...
分类:
移动开发 时间:
2014-08-07 21:54:40
阅读次数:
250
Palindrome Partitioning IIGiven a strings, partitionssuch that every substring of the partition is a palindrome.Return the minimum cuts needed for a p...
分类:
其他好文 时间:
2014-08-07 21:54:30
阅读次数:
222
模板很重要#include #include #include #include #include using namespace std; #define MAXN 9999#define MAXSIZE 10#define DLEN 4class BigInt{ private: int...
分类:
其他好文 时间:
2014-08-07 21:53:30
阅读次数:
334