摘要: 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 ... 阅读全文
posted @ 2013-06-12 15:48 2011winseu 阅读(856) 评论(0) 推荐(0) 编辑
摘要: #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 阅读全文
posted @ 2013-06-12 10:23 2011winseu 阅读(277) 评论(0) 推荐(0) 编辑