显示下一条  |  关闭

himme007的博客

 
 
 
 
 
 

Fedora防火墙设置

2009-6-7 16:24:20 阅读1357 评论0 72009/06 June7

启动防火墙

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

作者  | 2009-6-7 16:24:20 | 阅读(1357) |评论(0) | 阅读全文>>

helen

2008-12-13 22:22:42 阅读65 评论0 132008/12 Dec13

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-12-13 22:22:42 | 阅读(65) |评论(0) | 阅读全文>>

单向链表的递归逆序算法

2008-10-31 16:08:47 阅读371 评论1 312008/10 Oct31

         单向链表的逆序算法是IT公司招聘中常被考察的一个重点,单纯的逆序算法不是很难,如何递归实现逆序?主要是理解递归方法的含义就可以很好的予以解决。单向链表的递归逆序算法如下:

#include<stdio.h>
#include<stdlib.h>

typedef struct _node{
 char data;
 struct _node * next;
}node;

node* reverse_list(node * head)       //逆序
{
 node

作者  | 2008-10-31 16:08:47 | 阅读(371) |评论(1) | 阅读全文>>

杨辉三角C语言实现

2008-10-26 12:28:13 阅读305 评论0 262008/10 Oct26

#include<stdio.h>
#include<string.h>

#define SIZE 10
main()
{
    int i,j;
    int a[SIZE][SIZE];
    printf("\n");

    for(i=0;i<SIZE;i++)
    {    
        a[i][0]=1;
        a[i][i]=1;
    }
    for(i=2;i<SIZE;i++)
        for(j=1;j<i;j++)
            a[i][j]=a[i-1][j-1]+a[i-1][j];

作者  | 2008-10-26 12:28:13 | 阅读(305) |评论(0) | 阅读全文>>

某公司笔试题

2008-10-19 17:10:40 阅读66 评论0 192008/10 Oct19

大题:

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++;

作者  | 2008-10-19 17:10:40 | 阅读(66) |评论(0) | 阅读全文>>

查看所有日志>>

 
 
 
 
 
 
 
 
 
 
 
下载音乐盒  曲目表歌词秀
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 我要留言
 
 
 
留言列表加载中...
 
 
 
 
 
 
 
 

湖南省 长沙市

 发消息  写留言

 
博客等级加载中...
今日访问加载中...
总访问量加载中...
最后登录加载中...
 
 
 
 
 
 
 
心情随笔列表加载中...
 
 
 
 
 
 
 
模块内容加载中...
 
 
 
 
 
 
 
博友列表加载中...
 
 
 
 
 
 
 
列表加载中...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2012

   
创建博客 登录  
 关注