码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
无法将类型为“Shell32.ShellClass”的 COM 对象强制转换为接口类型“Shell32.IShellDispatch 6”
今天想研究一下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
c++字符串的排列组合
#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
scu oj 4437: Carries (2015年四川省程序ACM设计竞赛B题目 )
其实这题只要想到这个结论就简单了。如果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
开始了 新的 ACM 搜索!
希望 现在 到 暑假 做够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
C# 鼠标左右手切换
using System;using System.Collections.Generic;using System.Text;using System.Runtime.InteropServices;namespace SwapMouse{class Program{[DllImport("use...
分类:Windows程序   时间:2015-06-16 12:23:23    阅读次数:191
15周《C++语言基础》程序阅读——二进制文件及文件的随机读写(1)
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
北大OJ_1001题:求正数的高精度幂
程序说明 程序效率不高,时间复杂度为O(n^2),有待进一步的优化,呵呵    程序代码 #include #include #include using namespace std; //求两个大数的乘积(两数均为正数) string GetProductOfTwoBigNum( string strNumLeft, string strNumRight ) { ///...
分类:其他好文   时间:2015-06-16 09:27:56    阅读次数:201
杭电ACM1240——Asteroids!~~简单的BFS
这道题目,三维空间上的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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!