Skip to content

Commit 9c70714

Browse files
committed
first
0 parents  commit 9c70714

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1041
-0
lines changed

Diff for: .vscode/c_cpp_properties.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"configurations": [
3+
{
4+
"cStandard": "c17",
5+
"compilerPath": "D:\\Program Files (x86)\\mingw64\\bin\\gcc.exe",
6+
"includePath": [
7+
"${{workspaceFolder}}/**"
8+
],
9+
"intelliSenseMode": "windows-gcc-x64",
10+
"name": "Win32"
11+
}
12+
],
13+
"version": 4
14+
}

Diff for: .vscode/launch.json

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"configurations": [
3+
{
4+
"MIMode": "gdb",
5+
"args": [],
6+
"cwd": "${fileDirname}",
7+
"env": {
8+
"PATH": "D:\\Program Files (x86)\\mingw64\\bin;${env:PATH}"
9+
},
10+
"environment": [],
11+
"externalConsole": true,
12+
"internalConsosleOptions": "neverOpen",
13+
"miDebuggerPath": "D:\\Program Files (x86)\\mingw64\\bin\\gdb.exe",
14+
"name": "single file debug",
15+
"preLaunchTask": "single file build",
16+
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
17+
"request": "launch",
18+
"stopAtEntry": false,
19+
"type": "cppdbg"
20+
}
21+
],
22+
"version": "0.2.0"
23+
}

Diff for: .vscode/settings.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"files.associations": {
3+
"stdio.h": "c",
4+
"sstream": "c"
5+
}
6+
}

Diff for: .vscode/tasks.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
"options": {
3+
"env": {
4+
"Path": "D:\\Program Files (x86)\\mingw64\\bin;${env:Path}"
5+
}
6+
},
7+
"tasks": [
8+
{
9+
"args": [
10+
"-g",
11+
"${file}",
12+
"-o",
13+
"${fileDirname}\\${fileBasenameNoExtension}.exe",
14+
"-std=c17"
15+
],
16+
"command": "D:\\Program Files (x86)\\mingw64\\bin\\gcc.exe",
17+
"group": {
18+
"isDefault": true,
19+
"kind": "build"
20+
},
21+
"label": "single file build",
22+
"presentation": {
23+
"clear": true,
24+
"echo": false,
25+
"focus": false,
26+
"panel": "shared",
27+
"reveal": "silent",
28+
"showReuseMessage": false
29+
},
30+
"problemMatcher": "$gcc",
31+
"type": "process"
32+
},
33+
{
34+
"args": [],
35+
"command": "${fileDirname}\\${fileBasenameNoExtension}.exe",
36+
"dependsOn": "single file build",
37+
"label": "run and pause",
38+
"presentation": {
39+
"clear": true,
40+
"echo": false,
41+
"focus": false,
42+
"panel": "shared",
43+
"reveal": "never",
44+
"showReuseMessage": false
45+
},
46+
"problemMatcher": [],
47+
"type": "pause-console"
48+
}
49+
],
50+
"version": "2.0.0"
51+
}

Diff for: TaskB/Number.c

+106
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
#include <stdio.h>
2+
3+
int main()
4+
{
5+
int a=0,b=0;
6+
// printf("please input 2 numbers:");
7+
printf("ÇëÊäÈë2¸öÊý×Ö:");
8+
scanf("%d %d",&a,&b);
9+
char dot[10][8][9]={
10+
" ****** ",
11+
"* *",
12+
"* *",
13+
"* *",
14+
"* *",
15+
"* *",
16+
"* *",
17+
" ****** ",
18+
19+
" * ",
20+
" ** ",
21+
" * ",
22+
" * ",
23+
" * ",
24+
" * ",
25+
" * ",
26+
" *** ",
27+
28+
" ****** ",
29+
" *",
30+
" *",
31+
" ****** ",
32+
"* ",
33+
"* ",
34+
"* ",
35+
" ****** ",
36+
37+
" ****** ",
38+
" *",
39+
" *",
40+
" ****** ",
41+
" *",
42+
" *",
43+
" *",
44+
" ****** ",
45+
46+
"* *",
47+
"* *",
48+
"* *",
49+
" *******",
50+
" *",
51+
" *",
52+
" *",
53+
" *",
54+
55+
" ****** ",
56+
"* ",
57+
"* ",
58+
" ****** ",
59+
" *",
60+
" *",
61+
" *",
62+
" ****** ",
63+
64+
" ****** ",
65+
"* ",
66+
"* ",
67+
"******* ",
68+
"* *",
69+
"* *",
70+
"* *",
71+
" ****** ",
72+
73+
" *******",
74+
" *",
75+
" *",
76+
" * ",
77+
" * ",
78+
" * ",
79+
" * ",
80+
" * ",
81+
82+
" ****** ",
83+
"* *",
84+
"* *",
85+
" ****** ",
86+
"* *",
87+
"* *",
88+
"* *",
89+
" ****** ",
90+
91+
" ****** ",
92+
"* *",
93+
"* *",
94+
" *******",
95+
" *",
96+
" *",
97+
" *",
98+
" ****** "
99+
};
100+
for(int i=0;i<8;i++)
101+
{
102+
printf("%s ",dot[a][i]);
103+
printf("%s\n",dot[b][i]);
104+
}
105+
106+
}

Diff for: TaskB/Number.exe

54.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)