1.首先找到你需要的jar包
2.复制粘贴到下图位置
3.你的粘贴后可能是这样的
4.正确的方式是这样的
5.在粘贴后还需要操作2步(1.选中Add As Library)然后进入下一步
然后就可以在程序中成功调用你的jar包了...
分类:
移动开发 时间:
2016-05-08 06:47:42
阅读次数:
171
——异常捕获
我们在程序中经常会出现各种各样的异常,你如果想要你的程序变得坚强一些。
在你的代码中应该经常性的使用try-catch来进行异常捕获。try
{
//可能会出现异常的代码;
}
catch(Exception ex)
{
//Exception ex是错误日志。ex.ToString()可以读取出来
//try和catch之间不能有其他的代码
//出...
#include
using namespace std;
/*对象链表(new/delete)*/
#define LEN sizeof(stu)
//定义单向链表结点的数据类型
class stu
{
public:
char name[20];
int age;
int sex;
stu * Next;
};
void CreateList(int, stu **);
void ...
分类:
编程语言 时间:
2016-05-08 06:45:53
阅读次数:
184
实现功能:
实现网络音乐搜索功能
实现网络音乐下载功能
下载好的音乐目前不在播放器内,可以通过文件浏览器查看。
后续将博文,将实现歌词和下载音乐扫描功能。
经过将近4天,才发布这一篇博客,明显更新博客速度变慢了,因为没有自己的音乐服务器,网络上的音乐网站在这边博客发表的2016年5月已经很难找到免费且在线下载的了,就算找到解析也是一个难题。如果你在练习同样功能的Demo,请尽快下载练...
分类:
移动开发 时间:
2016-05-08 06:46:14
阅读次数:
295
一丶PagerSlidingTabStrp运用
扣丁音乐1.0前部分(gif图大小限制)演示:
视频教程中是直接将PagerSlidingTabStrp例子的主页面拿来做主页面,并对相应用到的地方做出修改
修改一:
activity_main.xml
保留如下,其余控件删除
<com.astuetz.PagerSlidingTabStrip
android:id="...
分类:
其他好文 时间:
2016-05-08 06:44:31
阅读次数:
183
一丶本地音乐加载相当于就是listVIew应用
扣丁音乐1.0前部分(gif图大小限制)演示:
实体类Mp3Info(歌曲相关数据及get和set方法)
public class Mp3Info {
private long id;
private String title;//歌名
private String artist;//艺术家
pr...
分类:
其他好文 时间:
2016-05-08 06:45:03
阅读次数:
163
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:
其他好文 时间:
2016-05-08 06:45:03
阅读次数:
147
Given a binary tree, find the maximum path sum. For this problem, a path is defined as any sequence of nodes from some starting node to any node in th ...
分类:
其他好文 时间:
2016-05-08 06:44:03
阅读次数:
146
./configure --prefix=/usr/local/php7 \ --with-config-file-path=/usr/local/php7/etc \ --with-mysql=mysqlnd \ --with-mysqli=mysqlnd \ --with-pdo-mysql=m ...
分类:
Web程序 时间:
2016-05-08 06:43:31
阅读次数:
161
编译安装PHP7后没有在ext中没有生成mysqli.so等文件,现在单独编译安装mysqli php7安装的位置:/usr/local/php7/ 我的扩展目录:/usr/local/php7/lib/php/extensions/no-debug-non-zts-20151012/ 解压php7 ...
分类:
数据库 时间:
2016-05-08 06:42:52
阅读次数:
2706
http://www.cnblogs.com/chengxin1982/p/3818448.html “-Xmx1024m -Xms1024m -Xmn512m -Xss256k”——Java运行参数(转) 年轻代 年老代概念 http://jefferent.iteye.com/blog/1123 ...
分类:
编程语言 时间:
2016-05-08 06:42:03
阅读次数:
618
1.从官网下载spring相关jar http://spring.io/projects 点击SPRING FRAMEWORK 2.从GitHtb下载 3.向下滚动找到Downloading Artifacts 点击 4.点击Artifacts--》libs-release-local--》org- ...
分类:
编程语言 时间:
2016-05-08 06:43:35
阅读次数:
261
random是用于生成随机数的,我们可以利用它随机生成数字或者选择字符串。 random.seed(x)改变随机数生成器的种子seed。 一般不必特别去设定seed,Python会自动选择seed。 random.random() 用于生成一个随机浮点数n,0 <= n < 1 random.see ...
分类:
编程语言 时间:
2016-05-08 06:43:27
阅读次数:
392
http://blog.csdn.net/leixiaohua1020/article/details/42363079 最简单的基于libVLC的例子:最简单的基于libVLC的视频播放器 最简单的基于libVLC的例子:最简单的基于libVLC的视频播放器 标签: libvlcvlc播放器开发 ...
分类:
其他好文 时间:
2016-05-08 06:43:34
阅读次数:
223
http://poj.org/problem?id=1399 http://acm.hit.edu.cn/hoj/problem/view?id=1037 题意: 在一个最多200*200的minecraft方块地图上(由很多1*1*1的方块搭起来的地图,最高5000),其中两块分别有高0.5米的激 ...
分类:
其他好文 时间:
2016-05-08 06:40:10
阅读次数:
358
之前上传附件都是用插件,或者用form表单体检(这个是很久以前的方式了),今天突发奇想,自己来实现附件上传,具体实现如下 html: <div> 流程图: <input id="file" type="file" > <button ng-click="bpmmainFunction.createB ...
分类:
Web程序 时间:
2016-05-08 06:41:23
阅读次数:
211
action action_log addons attachment 附件插件数据表 attribute 模型属性定义表 auth_extend 权限扩展表,当节点控制无法满足时,需要对权限控制进行扩展。例如:分类的授权即使用该表。 索引定义:UNIQUE KEYgroup_extend_type ...
分类:
数据库 时间:
2016-05-08 06:42:34
阅读次数:
371