This commit is contained in:
Luthics 2023-02-19 13:49:23 +08:00
commit 407877de30
6 changed files with 56 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*/tempCodeRunnerFile.*
*/*.exe

6
.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,6 @@
{
"C_Cpp.clang_format_style": "{ BasedOnStyle: Chromium, UseTab: Never, IndentWidth: 4, TabWidth: 4, AllowShortIfStatementsOnASingleLine: false, IndentCaseLabels: false, ColumnLimit: 0, AccessModifierOffset: -4, NamespaceIndentation: All, FixNamespaceComments: false }",
"files.associations": {
"stdio.h": "c"
}
}

9
1/1.c Normal file
View File

@ -0,0 +1,9 @@
#include <stdio.h>
int main() {
printf(" 1.Input\n");
printf(" 2.Output\n");
printf(" 3.Order\n");
printf(" 4.Quit");
return 0;
}

19
1/2.c Normal file
View File

@ -0,0 +1,19 @@
#include <stdio.h>
int main() {
// printf(" 1.Input\n");
// printf(" 2.Output\n");
// printf(" 3.Order\n");
// printf(" 4.Quit\n");
char m;
scanf("%c", &m);
if (m == 'I')
printf("You are trying to input info");
else if (m == 'O')
printf("You are trying to output info");
else if (m == 'D')
printf("You are trying to make things ordered");
else if (m == 'Q')
printf("You are about to quit");
return 0;
}

19
1/3.c Normal file
View File

@ -0,0 +1,19 @@
#include <stdio.h>
int main() {
// printf(" 1.Input\n");
// printf(" 2.Output\n");
// printf(" 3.Order\n");
// printf(" 4.Quit\n");
char m;
scanf("%c", &m);
if (m == 'I')
printf("You are trying to input info");
else if (m == 'O')
printf("You are trying to output info");
else if (m == 'D')
printf("You are trying to make things ordered");
else if (m == 'Q')
printf("You are about to quit");
return 0;
}

1
README.md Normal file
View File

@ -0,0 +1 @@
# 2023春程序设计基础(吴茜媛)-Moodle