今天想研究一下mp3 然后在输出mp3长度的时候用了如下代码(网上搬得):
string file = "D:\\AccountDaemon\\My Music\\MyMusics\\Luxtos.mp3";
ShellClass sh = new ShellClass();
Folder dir = sh.NameSpace(Path.GetD...
分类:
系统相关 时间:
2015-06-16 17:01:04
阅读次数:
1469
#include
#include
using namespace std;
static int sum = 0;
void Swap(char &a, char &b)
{
char tmp = a;
a = b;
b = tmp;
}
void Grial(char *s1, char *s2)
{
if (s1 ==...
分类:
编程语言 时间:
2015-06-16 16:57:20
阅读次数:
178
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 函数_解一元二次方程_{ class Program { public static ...
分类:
其他好文 时间:
2015-06-16 16:18:55
阅读次数:
85
其实这题只要想到这个结论就简单了。如果2个数a,b的第k位相加要进位,那么必须满足(a%10^k+b%10^k)>=10^k .有了这个结论就很简单了,枚举没一位就好了。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace std;
c...
分类:
其他好文 时间:
2015-06-16 14:47:16
阅读次数:
215
希望 现在 到 暑假 做够100到搜索题!hdu1010#include #include using namespace std;int vis[10][10];char mat[10][10];int ok,T,M,N;void visit(int i,int j,int cur){ if(cu...
分类:
其他好文 时间:
2015-06-16 14:28:54
阅读次数:
158
using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace SwapMouse{class Program{[DllImport("use...
1、阅读并运行下面的两个程序,分别用记事本和二进制文件阅读器(请自行下载Binary Viewer等程序,或者用DOS中的Debug程序,并百度其用法)。查看其内容,并理解文件存储的原理。
(1)
#include
#include
#include
using namespace std;
int main( )
{
int a;
ofstream outfile(...
分类:
编程语言 时间:
2015-06-16 09:29:17
阅读次数:
216
程序说明
程序效率不高,时间复杂度为O(n^2),有待进一步的优化,呵呵
程序代码
#include
#include
#include
using namespace std;
//求两个大数的乘积(两数均为正数)
string GetProductOfTwoBigNum( string strNumLeft, string strNumRight )
{
///...
分类:
其他好文 时间:
2015-06-16 09:27:56
阅读次数:
201
这道题目,三维空间上的BFS,给你起点和终点,看能否找到一条路,O表示可以走,X表示不可以走!~
理解了题目,就可以用队列来实现BFS来求解。
下面的是AC 的代码:
#include
#include
#include
#include
using namespace std;
class data
{
public:
int xyz;
int count;
};
cha...
分类:
其他好文 时间:
2015-06-16 09:22:19
阅读次数:
113
宏定义如下:
#include
using namespace std;
#define M 21
typedef int SqList[M];
一.直接插入排序
实现代码如下:
void InsertSort(SqList &L,int n)//直接插入排序
{
for(int i = 2;i < n;++i) //从下标为2处开始处理
{
if(L[i] <=...
分类:
编程语言 时间:
2015-06-16 06:46:56
阅读次数:
113