摘要: 我的电脑安装ubuntu后不能上网,可以使用lspci命令查看自己的网卡。我的网卡是AtherosAR8162, 在网上找到了兼容的网卡驱动,下载地址是:https://www.kernel.org/pub/linux/kernel/projects/backports/2013/03/04/下载后解压压缩文件tar -xvf xxxx.bz2安装:cd xxxx.bz2./scripts/driver-select alxmakemake install加载网卡驱动modprobe alx 阅读全文
posted @ 2013-11-04 21:36 关雎天下 阅读(3722) 评论(0) 推荐(1) 编辑
摘要: 二叉树的操作有前序递归遍历,前序非递归遍历,中序递归遍历,中序非递归遍历,后序递归遍历,后序非递归遍历,层序遍历,递归打印叶子结点,非递归打印叶子结点。若一棵树的结构如下,它的前序遍历是ABD##E#F##CG###则对树的操作代码如下:类BiTree, 则bitree.h的代码如下: 1 #ifndef BITREE_H 2 #define BITREE_H 3 4 const int MaxSize = 100; 5 6 template 7 struct BiNode //二叉树的结点结构 8 { 9 T data;10 BiNode *lchild, *rchild;... 阅读全文
posted @ 2013-11-04 12:54 关雎天下 阅读(586) 评论(0) 推荐(0) 编辑