From a2ad0e1ee7083dae1142fdfad450fed09750b6fd Mon Sep 17 00:00:00 2001 From: pk29n3fu4 <2434647226@qq.com> Date: Fri, 29 Nov 2024 20:06:41 +0800 Subject: [PATCH] ADD file via upload --- cs1.cpp | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 cs1.cpp diff --git a/cs1.cpp b/cs1.cpp new file mode 100644 index 0000000..5c4443a --- /dev/null +++ b/cs1.cpp @@ -0,0 +1,29 @@ +#include +#include + +int main() { + char choice; + printf(" 1.Input\n 2.Output\n 3.Order\n 4.Quit\n", "", "", "", ""); + choice='i'; + printf("i"); + printf("\n"); + 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; +} +