- 博客(6)
- 收藏
- 关注
原创 util.Array.sort()方法调用compareTo()方法
/** * Created by dell on 2021/6/15. * 测试使用util包的sort方法进行排序的时候,是怎么调用comparetor()方法的。 * 测试情况包含两种 * 1、对象排序 * 2、二维数组排序 */public class TestSort { private static Car[] cars=new Car[5]; public static void main(String[] args) { for (int i.
2021-06-15 13:37:19
892
原创 指定路径下的文件按照tsv信息进行分类
首先代码是matlab,其次tsv文件转为了xlsx文件进行处理下图是xlsx文件中的内容,文件名,主要是文件夹中的MP3文件多余xlsx中的文件,需要把在xlsx中的文件挑选出来。下图是文件夹中的内容代码(matlab):其中关键的文件夹1的位置[data str]=xlsread('E:\speechDate\train.xlsx','B307:B477');cd...
2019-12-01 09:09:48
554
原创 批量MP3格式转wav,不改变文件名字
11-28-2019提取mfcc特征,网上查到的是wav格式的可以,MP3需要转为wav。用matlab解决,文件名字不变,格式从MP3转为wav。注意代码执行完之后原有的MP3文件会被删除代码:cd E:\speechDate\zh-CN\clips music=dir('*.mp3'); for i=1:length(music) [y,Fs]=audioread(...
2019-11-28 18:12:40
609
原创 HDU 排名 STL练习
#include <iostream>#include <algorithm>#include <string>using namespace std;int n;//考生人数int m;//考题数int G;//分数线int *p;struct node{ string str; int sum; int num;}stud...
2019-03-12 15:13:38
331
原创 STL练手
一个字符串的最大元素出插入“max”输出#include <iostream>#include <string>#include <vector>#include <algorithm>using namespace std;//在一个字符串的最大元素之后添加max,输出可以使用vector容器int main(){ vecto...
2019-03-11 16:55:46
141
原创 HDU 单词数(set集合)
#include <set>#include <iostream>#include <cstdio>#include <string>using namespace std;int main(){ set<string> s; string str; string str1; //读入当前的一句话中存在多个空格,如...
2019-03-11 16:17:29
267
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人