06 2013 档案
摘要:1 #include 2 #include 3 #include 4 #define MAX_VERTEX_NUM 20 5 #define OK 1 6 #define ERROR 0 7 #define MAX 1000 8 using namespace std; 9 typedef struct Arcell 10 { 11 double adj; 12 }Arcell,AdjMatrix[MAX_VERTEX_NUM][MAX_VERTEX_NUM]; 13 typedef struct 14 { 15 char vexs[MAX_VERTEX_N...
阅读全文
摘要:1 #include 2 using namespace std; 3 struct TreeNode //树结构体定义 4 { 5 char data; 6 TreeNode *lchild,*rchild; 7 }; 8 char getonech(char ar[]) 9 { static int i; 10 return ar[i++]; 11 } 12 void CreateBiTree(TreeNode *&p,char ar[]) //建立一个新树 13 { 14 char ch; 15 ...
阅读全文
摘要:#include #include using namespace std;int main(){ int testcase_num; cin >> testcase_num; vector *result = new vector[testcase_num]; for ( int i = 0; i > number_transfered; vector transfered; int count = 0; int input; while( count > input ) { transfered.push_back(input); count++; } vector
阅读全文

浙公网安备 33010602011771号