#include<iostream> using namespace std int main() { unsigned long x,warcraft,war,l cin> x while(x) { unsigned long *p=new unsigned long[x+1] if(p==NULL) { cerr<<"error!"<<endl...
Dijkstra算法求最短路径(C#版) using System using System.Collections using System.Text namespace Greedy { class Marx { private int[] distance private int row private ArrayList ways = ne...
//使用gray code的解法 #include <iostream> #include <cmath> using namespace std #define ZERO 0 #define ONE 1 #define ODD 1 #define EVEN 0 #define RIGHT 1 #define LEFT 0 #define MAX ...
一个VB.NET 写的NAMESPACE,可以在WINDOWS MOBILE 5,6平台上获得当前系统时间,内存使用状态,程序所在位置和设备名称. 直接应用函数名就可以了.没有传入参数.除了时间,其他的都以字符串为类型