用于获取MP3内部信息,包括歌曲名,歌手名等…… namespace FileBatchRemaer.domain{ /// /// Mp3信息结构 /// public struct Mp3Info { public string identif...
分类:
其他好文 时间:
2014-08-13 10:11:25
阅读次数:
187
矩阵快速幂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
我们常常需要给自定义的类或者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
1.0 controller get请求type MainController struct { beego.Controller}func (this *MainController) Get() { this.Data["IsHome"] = true this.Data["W...
分类:
Web程序 时间:
2014-08-12 18:48:04
阅读次数:
203
我们有时会将一个整数与IP地址进行互换,用python代码实现很简单将一个整数如2000000,变为一个IP地址的方式>>> import socket>>> import struct>>> int_ip = 123456789>>> ip = socket.inet_ntoa(struct.pa...
分类:
编程语言 时间:
2014-08-12 18:39:44
阅读次数:
257