1-2
This commit is contained in:
commit
407877de30
|
@ -0,0 +1,2 @@
|
||||||
|
*/tempCodeRunnerFile.*
|
||||||
|
*/*.exe
|
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
|
@ -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;
|
||||||
|
}
|
|
@ -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;
|
||||||
|
}
|
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue