用于获取MP3内部信息,包括歌曲名,歌手名等…… namespace FileBatchRemaer.domain{ /// /// Mp3信息结构 /// public struct Mp3Info { public string identif...
分类:
其他好文 时间:
2014-08-13 10:11:25
阅读次数:
187
ANDROID 调试技术:1)Ps 指令ls –l /proc/27/cat /proc/27/cmdline #cmdline文件表示了这个进程所在的命令行。cat /proc/27/status #status 文件表明了获知这个进程的相关信息。 #stat包含更多信息,但较难读。cat ...
分类:
移动开发 时间:
2014-08-13 10:07:55
阅读次数:
273
矩阵快速幂1 while(N)2 {3 if(N&1)4 res=res*A;5 n>>=1;6 A=A*A;7 } 1 #include 2 using namespace std; 3 #deinfe mod 10000 4 struct matrix 5 {...
分类:
其他好文 时间:
2014-08-13 00:49:54
阅读次数:
214
由于chmod命令的一般使用格式为:chmod u+x filename所以本程序的编写可以按照chmod命令的格式,文件权限的获取、中间参数部分的解析以及权限的汇总、以及文件权限的更改这三个部分来实现。以下是三个部分的分析:1、要想得到文件的权限,可以通过使用stat函数就可以实现。该函数的原型为...
分类:
其他好文 时间:
2014-08-13 00:46:24
阅读次数:
429
我们常常需要给自定义的类或者struct来定义比较函数,用于数组、vector、set、map或者直接比较。
分类:
其他好文 时间:
2014-08-13 00:37:04
阅读次数:
213
题意:。。。
难点:如何判断是不是信息不全:在输入的时候建立并查集,之后判断有几个节点就可以了,剩下的就是kruskal算法。
代码:
#include
#include
#include
#define MAXN 105
#define INF 0x3f3f3f3f
using std::sort;
struct node{
int from;
int to;
int w;
}ed...
分类:
其他好文 时间:
2014-08-12 22:09:14
阅读次数:
257
解题报告
题意:
求矩形周长和。
思路:
左扫上扫,扫过了。
#include
#include
#include
#include
#include
using namespace std;
struct Seg {
int lx,rx,ly,ry,h,v;
friend bool operator < (Seg a,Seg b)
{
...
分类:
其他好文 时间:
2014-08-12 22:06:34
阅读次数:
243
一. 二叉树定义:二叉树具有天然的递归特性,凡是二叉树相关题,首先应该联想到递归struct BinTreeNode { BinTreeNode* left; BinTreeNode* right; int val; BinTreeNode(int valu...
分类:
其他好文 时间:
2014-08-12 21:45:24
阅读次数:
314
模拟大法保平安_(:зゝ∠)_
#include
#include
#include
#include
using namespace std;
const int N = 1;
struct node{
int x, y, val;
node(int a=0,int b=0,int c=0):x(a),y(b),val(c){}
bool operator<(...
分类:
其他好文 时间:
2014-08-12 19:07:44
阅读次数:
224
#include
#include
#include
#include
using namespace std;
typedef struct node{
int x,y;
bool operator<(const node &b)const
{
if(x==b.x)
return y<b.y;
else
...
分类:
其他好文 时间:
2014-08-12 19:05:34
阅读次数:
249