From e02ca1e461cc9f87a1e492835fb91698ab256b66 Mon Sep 17 00:00:00 2001 From: pelix8yho <2948602291@qq.com> Date: Fri, 10 Nov 2023 11:03:32 +0800 Subject: [PATCH] ADD file via upload --- chengxu1.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 chengxu1.cpp diff --git a/chengxu1.cpp b/chengxu1.cpp new file mode 100644 index 0000000..e09a743 --- /dev/null +++ b/chengxu1.cpp @@ -0,0 +1,33 @@ +#include + +int main() { + char choice; + + while (1) { + printf("\n 1.Input\n"); + printf(" 2.Output\n"); + printf(" 3.Order\n"); + printf(" 4.Quit\n"); + + scanf(" %c", &choice); + + switch (choice) { + case 'i': + printf("You are trying to Input info\n"); + break; + case 'o': + printf("You are trying to Output info\n"); + break; + case 'm': + printf("You are trying to Make things ordered\n"); + break; + case 'q': + printf("You are about to Quit\n"); + return 0; //Í˳ö³ÌÐò + default: + printf("Wrong input\n"); + } + } + + return 0; +}