🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.program
Article #1066

��ͨ����Ա�ġ����߹���˵���

#1066
From: ���ܵ�Сʨ
Date: Thu, 07 May 1998 00:00
69 lines
3684 bytes
   ��UNIX/XENIXϵͳ��,ϵͳ����Ա�縺�Ŷ�ϵͳ�Ĺ����ά������
,��������������Ҫ��,�����dz����û��ڹ��Ĺ���Ӧʮ���ϸ�һ��
��ҵ����Ա��������Ȩ�޵���Լ,�޷�����һЩ����Ա�Ĺ�������ʵ
�ʹ�����,ϵͳ����Ա����������������,��ҵ����Ա��������಻
�㡣Ϊ��,�ʲ��������Ŀǰʹ�õĵ�������"�ʽ�����"Ӧ�����,��
SHELL��C���Ա�д��һ������"ϵͳ����Ա"��С����,Դ��������:
    /*menu.c*/
    #include<stdio.h>
    #define TURN 1
    #define FAN 0
    main()
    {
    int i;
    char flag;
    flag= TURN;
    do{
    system("setcolor-b blue");
    system:("clear");
    printf(033[20;35H���жϼ��˳�");
    printf("\033[8;31H�������й��߹���˵�");
    printf("\033[9;24H");  ��������������������������������
������
    printf("\033[10;24H"); ��1.��ʽ������      2.��ѯ�����
��  ��
    printf("\033[11;24H"); ��3.��ѵѯ���н��  4.Ping��վ��
Ϣ  ��
    printf("\033[12;24H"); ��5.��ѯ�������    6.�ػ�       
   ��
    printf("\033[13;24H"); ��������������������������������
������
    printf("\033[14;36H��ѡ��[]:";
    printf(("\033[14;43H");
    scanf("d%d".&i);
    if (i==1){system("clear");
    system("format/format/dev/rfd0");
    }
    else if (i==2)
    system("cxrk");
    else if (i--3){
    system("clear"):
    system("ps-d");
    system("read aa");
    }
    else if (i==4)
    system("cxxx");
    else if (i==5)
    system("cxsj");
    else if (i==0)
    system("lsu-off");
    else foag=TURN;
    system("clear");
    }while(flag);
    }
    ����ע:��˶��if-else,��caseʵ�ֿ��ܻ���Щ��
    Ӧ��ʱͨ����Ļ�л���������������߲˵�,�Ӷ�����ͨ����Ա
Ҳ���Խ���һЩһ��Ȩ��֮�ڵ�ϵͳ����Ա�Ĺ������������ڴ˹���
�˵��м�������һЩ������Ҫ��ģ��,��ȻҲ��Ȩ������,�û����Լ�
���ա�
    �˷�������XENIX/UNIXϵͳ����������ͨ��
--
 ________ _____          _____        ______________  _____ 
 ___  __ \___(_)________ ___(_)       __  ___/___  /_ ___(_)
 __  /_/ /__  / ___  __ \__  /        _____ \ __  __ \__  / 
 _  ____/ _  /  __  /_/ /_  /         ____/ / _  / / /_  /  
 /_/      /_/   _  .___/ /_/          /____/  /_/ /_/ /_/   
                /_/                                         

�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: hsia.nju.edu.cn]
Technical Details
Message-ID: <3OOYGj$tjB@bbs.nju.edu.cn>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: fc86e,12eb7ed708c8d70e,start
X-Google-Attributes: gidfc86e,public
From: pipishi.bbs@bbs.nju.edu.cn (���ܵ�Сʨ)
Subject: ��ͨ����Ա�ġ����߹���˵���
Date: 1998/05/07
Message-ID: <3OOYGj$tjB@bbs.nju.edu.cn>
X-Deja-AN: 351554908
X-Filename: Programming/M.894547245.A
Organization: nju_bbs
Newsgroups: cn.bbs.comp.program