摘要:
void GetAllDirList(String^ path,List^ list){array^ dirs = Directory::GetDirectories(path); for each(String^ dir in dirs ){FileInfo^ info = gcnew FileInfo(dir);if((info->Attributes & FileAttributes::Hidden) == FileAttributes::Hidden )//过滤掉隐藏文件continue;list->Add(dir);GetAllDirList(dir,list); 阅读全文
摘要:
#include<iostream>#include<cstdlib>#include<ctime>using namespace std ;#define MAXSIZE 100 #define OK true #define ERROR false #define LEN 5 #define OVERFLOW 0typedef bool Status ;typedef int QElemType ;typedef struct QNode{ QElemType data ; QNode * next ;}QNode,*pQNode;typedef str 阅读全文
摘要:
#include<iostream>#include<cstdlib>#include<ctime>using namespace std ;#define MAXSIZE 100#define OK true#define ERROR false#define LEN 5typedef bool Status ;typedef int QElemType ;typedef struct{QElemType data[MAXSIZE];int front ;int rear ;}SqQueue;Status initQueue(SqQueue * Q){Q- 阅读全文
摘要:
#include <iostream>using namespace std ;#define MAXSIZE 1000#define OK true #define ERROR false typedef int ElemType ;typedef bool Status ;typedef struct {ElemType data ;int cur ;}Component,StaticLinkList[MAXSIZE];Status InitStaticLinkList(StaticLinkList space){for(int i = 0 ; i < MAXSIZE-1 阅读全文