04 Peng Yuen

Source: Internet
Author: User
Tags clear screen

#include <stdio.h>#include<string.h>Main () {Charliangzu[ -][ -]={"dir","CD","MD","Rd","CLS","Date"," Time","Ren","Copy"," Help","quit"}; Charyizu[ -];  while(1) {printf ("Please enter a display character:");          Gets (Yizu); if(strcmp (yizu,liangzu[0])==0) {printf ("dir has no parameters \ n"); }     Else if(strcmp (yizu,liangzu[1])==0) {printf ("CD entry path \ n"); }       Else if(strcmp (yizu,liangzu[2])==0) {printf ("MD to create a folder. DOS directory, win folder \ n"); }       Else if(strcmp (yizu,liangzu[3])==0) {printf ("Rd Deletes a folder. \ n"); }     Else if(strcmp (yizu,liangzu[4])==0) {printf ("cls Clear screen \ n"); }      Else if(strcmp (yizu,liangzu[5])==0) {printf ("data set date \ n"); }      Else if(strcmp (yizu,liangzu[6])==0) {printf ("time set \ n"); }        Else if(strcmp (yizu,liangzu[7])==0) {printf ("ren rename \ n"); }      Else if(strcmp (yizu,liangzu[8])==0) {printf ("Copy copy \ n"); }     Else if(strcmp (yizu,liangzu[9])==0) {printf ("dir has no parameters \ n"); printf ("CD entry path \ n"); printf ("MD Build folder dos directory, win folder) \ n"); printf ("Rd Delete folder \ n"); printf ("cls Clear screen \ n"); printf ("data set date \ n"); printf ("time set times \ n"); printf ("ren rename \ n"); printf ("Copy copy \ n"); }      Else if(strcmp (yizu,liangzu[Ten])==0)        return; Else{printf ("input not recognized, re-enter \ n"); }        }}

04 Peng Yuen

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.