From c23073d96cf0942a0f3022ef527a852647893baa Mon Sep 17 00:00:00 2001 From: juan Date: Mon, 11 Oct 2021 15:18:22 +0800 Subject: [PATCH] ignore files on class --- onclass/dialogue.c | 38 -------------------------------------- onclass/multiply.c | 10 ---------- onclass/pointers.c | 10 ---------- onclass/starter.c | 20 -------------------- 4 files changed, 78 deletions(-) delete mode 100644 onclass/dialogue.c delete mode 100644 onclass/multiply.c delete mode 100644 onclass/pointers.c delete mode 100644 onclass/starter.c diff --git a/onclass/dialogue.c b/onclass/dialogue.c deleted file mode 100644 index 781a8ce..0000000 --- a/onclass/dialogue.c +++ /dev/null @@ -1,38 +0,0 @@ -/***************************************** - * - * 场景:人机对话 - * 人和机器轮流说一句话,问候、询问,。。。 - * 要说的话事前组织好 - * - * 人通过嘴说话,转换成文字通过键盘传递给机器, - * 机器经由键盘通过耳朵接收到人说话的文字, - * 并保存到机器的大脑记忆中,然后作思考。。。 - * 机器将要说的话以文字形式通过其嘴说到屏幕上, - * (也可以转换成语音,通过其嘴说到microphone) - * 人通过眼睛看到屏幕上的文字,理解其含义。。。 - * (或通过耳朵听到声音) - * 现阶段 - * 人到机器的信息传递通道:键盘——机器的耳朵:scanf - * 机器到人的信息传递通道:屏幕——机器的嘴:printf - * - * 如何实现以下对话? - * 小明:“你好,机器人!” - * 计算机:“哦哦,你叫什么名字?” - * 小明:“小明”。 - * 计算机:“你好,小明!” - * - * - * ****************************************/ - -#include -int main() { - char greating[20]; - char name[20]; - - scanf("%s", greating); - printf("你叫什么名字?\n"); - scanf("%s", name); - printf("你好,%s\n", name); - - return 0; -} diff --git a/onclass/multiply.c b/onclass/multiply.c deleted file mode 100644 index a399134..0000000 --- a/onclass/multiply.c +++ /dev/null @@ -1,10 +0,0 @@ -#include - -int main (void) -{ - int a, b; - scanf("%d %d",&a, &b); - printf("%d", a * b); - - return 0; -} diff --git a/onclass/pointers.c b/onclass/pointers.c deleted file mode 100644 index d2867e1..0000000 --- a/onclass/pointers.c +++ /dev/null @@ -1,10 +0,0 @@ -#include -#include - -int main(void) { - // initialize pointer variables - int i = 1; - int *p1 = &i; - printf("%i", *p1); - return 0; -} diff --git a/onclass/starter.c b/onclass/starter.c deleted file mode 100644 index 676f3db..0000000 --- a/onclass/starter.c +++ /dev/null @@ -1,20 +0,0 @@ -/*+-+-+-+-+-+ +-+-+-+-+-+*/ -/*|h|e|l|l|o| |w|o|r|l|d|*/ -/*+-+-+-+-+-+ +-+-+-+-+-+*/ - -#include - -int main(void) { - - // ask for a string - char greeting[20]; - scanf("hello %s", greeting); - - // output strings - printf("hello world\n"); - printf("This is a string %s\n", greeting); - printf("this is a float %+5.2f\n", 3.14); - printf("this is a float %+5.2f\n", -3.14); - printf("this is a decimal %+d\n", 3); - return 0; -}