摘要: Linux文件权限每个文件属于一个用户和一个组。这正是Linux中权限模型的核心。每个文件都有10元组表示文件的类型和文件所有者、文件所属组用户、其它用户对该文件的操作权限。例如一个普通文件的10元组-rwxr-xr-x1rootwheel430540Dec2318:27/bin/bash该字段中的... 阅读全文
posted @ 2014-08-03 13:21 AningEmpire 阅读(1791) 评论(0) 推荐(0) 编辑
摘要: 在互联网上要想与另外一台主机通信,要知道对方的IP地址,但是IP地址是很难记忆的,比如百度的一台服务器的IP地址为115.239.210.27,我们在浏览器中输入http://115.239.210.27/就可以访问百度了,但是如果访问一个网站就要记住它的的IP是很蛋疼的事,人们习惯记住有意义的字符... 阅读全文
posted @ 2014-07-25 21:45 AningEmpire 阅读(5617) 评论(0) 推荐(0) 编辑
摘要: 《内部连接与外部连接》作者Blog:http://blog.csdn.net/SpitFire/在说内部连接与外部连接前,先说明一些概念。1.声明 一个声明将一个名称引入一个作用域; 在c++中,在一个作用域中重复一个声明是合法的 以下都是声明: int foo(int,int); //函数前置声明 typedef int Int;//typedef 声明 class bar;//类前置声明 extern int g_var; //外部引用声明 class bar;//类前置声明 typedef int Int;//typedef 声明 extern int g_var; //外部引用声明 f 阅读全文
posted @ 2011-09-19 11:49 AningEmpire 阅读(253) 评论(0) 推荐(0) 编辑
摘要: #include<iostream>#include <iomanip>#include <stack>#include <deque>#include <fstream>using namespace std;struct primnode{public:char begvex;char endvex;int lowcost;};struct adknode{ int dist;//最近距离char way[50];//顶点数组int nodenum;//经过的顶点数};class Mgraph//邻接矩阵储存结构{public:M 阅读全文
posted @ 2010-12-29 22:36 AningEmpire 阅读(2088) 评论(0) 推荐(2) 编辑
摘要: #include <iostream>#include <deque>#include <stack>using namespace std;struct BSTNode{int data;BSTNode * LChild,* RChild;};class BST{private:BSTNode *T;public:~BST();BSTNode * GetRoot();void BSTCreate();void BSTInsert(BSTNode *);int BSTDepth(BSTNode *);//求树的深度 递归void Depth();//树的深度 阅读全文
posted @ 2010-12-28 12:58 AningEmpire 阅读(4075) 评论(1) 推荐(0) 编辑
摘要: #include<iostream>#include <iomanip>#include <string>#include<deque>using namespace std;const int MAXSIZE=20;class node {public:void operator =(node b);int key;char info;};void node::operator=(node b){key=b.key;info=b.info;}struct Sqlist{node data[MAXSIZE+1];int length;};clas 阅读全文
posted @ 2010-12-28 09:20 AningEmpire 阅读(434) 评论(0) 推荐(1) 编辑