2009-6-7 16:24:20 阅读(78) 评论(0)
启动防火墙
1) 重启后生效
开启: chkconfig iptables on
关闭: chkconfig iptables off 或者 /sbin/chkconfig --level 2345 iptables off
2) 即时生效,重启后失效
service 方式
开启: service iptables start
关闭: service iptables stop
iptables方式
查看防火墙状态:
/etc/init.d/iptables status
暂时关闭防火墙:
/etc/init.d/iptables stop
2008-12-13 22:22:42 阅读(15) 评论(0)
Unit 7
cargo insurance
All experienced exporters are aware of the risks to their cargo while it is in transit. These include fire, storm, collision, pilferage, leakage and explosions. Goods traveling to another country must be insured
2008-10-31 16:08:47 阅读(139) 评论(1)
单向链表的逆序算法是IT公司招聘中常被考察的一个重点,单纯的逆序算法不是很难,如何递归实现逆序?主要是理解递归方法的含义就可以很好的予以解决。单向链表的递归逆序算法如下:
#include<stdio.h>
#include<stdlib.h>
typedef struct _node{
char data;
struct _node * next;
}node;
node* reverse_list(node * head) //逆序
{
node
2008-10-26 12:28:13 阅读(9) 评论(0)
2008-10-19 17:10:40 阅读(34) 评论(0)
大题:
1. 反转链表
#include <iostream>
#include <cassert>
using namespace std;
struct LNode
{
char data;
LNode * next;
};
LNode * initList()
{
LNode *head=new LNode;
LNode *curPtr, *newPtr;
curPtr=head;
int i=0;
char ch='A';
while(i++<10)
{
newPtr=new LNode;
newPtr->data=ch++;