Thread View: cn.bbs.comp.program
1 messages
1 total messages
Started by ���ܵ�Сʨ
Thu, 07 May 1998 00:00
��ͨ����Ա�ġ����߹���˵���
Author: ���ܵ�Сʨ
Date: Thu, 07 May 1998 00:00
Date: Thu, 07 May 1998 00:00
69 lines
3684 bytes
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ϵͳ����������ͨ��
--
________ _____ _____ ______________ _____
___ __ \___(_)________ ___(_) __ ___/___ /_ ___(_)
__ /_/ /__ / ___ __ \__ / _____ \ __ __ \__ /
_ ____/ _ / __ /_/ /_ / ____/ / _ / / /_ /
/_/ /_/ _ .___/ /_/ /____/ /_/ /_/ /_/
/_/
[m[1;36m�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: hsia.nju.edu.cn][m
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads