/** Description:平衡二叉树AVL树的构造 **/ #include<iostream> #include<fstream> #include<iomanip> using namespace std; const int LH = 1;//左子树的深度大于右子树 const int EH =
共用体类型变量的内存分配问题: 一句话共用体变量的内的各个成员都是从低字节开始公用的; 比如union UnionType{ int x; char ch[4]; }temp; x = 24897; //x的二进位为(从高位到低位依次) 00000000 000
http://poj.org/problem?id=3984迷宫问题 #include<iostream> #include<stack> using namespace std; const int N = 5; int maze[N][N]; typedef struct PathNode{ int x;  
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号