Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
T
test-vscode-c-win
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸大学计算机学院
教师群组
宋海霞-shx
Test
test-vscode-c-win
提交
54ee15c8
提交
54ee15c8
3月 29, 2021
创建
作者:
305350171@qq.com
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交作业
上级
d7f7bb1f
流水线
#153578
已失败 于阶段
用时 11 秒
变更
5
流水线
1
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
41 行增加
和
16 行删除
+41
-16
.gitignore
.gitignore
+2
-1
settings.json
.vscode/settings.json
+12
-0
tasks.json
.vscode/tasks.json
+22
-13
main.c
main.c
+3
-0
makefile
makefile
+2
-2
没有找到文件。
.gitignore
浏览文件 @
54ee15c8
*.exe
*.exe
*.o
*.o
*.bak
*.bak
result_comparation.html
*.out
*.html
user_output*.txt
user_output*.txt
.vscode/settings.json
0 → 100644
浏览文件 @
54ee15c8
{
"files.exclude"
:
{
"**/*.git*"
:
true
,
"**/sonar*"
:
true
,
"**/valgrind-report.out"
:
true
,
"**/requirements.txt"
:
true
,
},
"files.associations"
:
{
"stdio.h"
:
"c"
}
}
\ No newline at end of file
.vscode/tasks.json
浏览文件 @
54ee15c8
...
@@ -4,7 +4,12 @@
...
@@ -4,7 +4,12 @@
{
{
"label"
:
"生成项目(make)"
,
"label"
:
"生成项目(make)"
,
"type"
:
"shell"
,
"type"
:
"shell"
,
"command"
:
"make"
,
"windows"
:
{
"command"
:
"cat
\"
${execPath}.tips
\\
env_tip.txt
\"
; echo VSCode安装路径-${execPath} ; echo 正在生成项目 ; make"
},
"linux"
:
{
"command"
:
"echo 正在生成项目 && make && echo 生成项目成功"
},
"args"
:
[],
"args"
:
[],
"group"
:
"build"
,
"group"
:
"build"
,
"presentation"
:
{
"presentation"
:
{
...
@@ -35,7 +40,7 @@
...
@@ -35,7 +40,7 @@
"label"
:
"测试(test)"
,
"label"
:
"测试(test)"
,
"type"
:
"shell"
,
"type"
:
"shell"
,
"windows"
:
{
"windows"
:
{
"command"
:
"python .vscode
\\
test.py"
"command"
:
"
cat
\"
${execPath}.tips
\\
python_tip.txt
\"
;
python .vscode
\\
test.py"
},
},
"linux"
:
{
"linux"
:
{
"command"
:
"python3 .vscode/test.py"
"command"
:
"python3 .vscode/test.py"
...
@@ -49,9 +54,14 @@
...
@@ -49,9 +54,14 @@
"problemMatcher"
:
"$gcc"
"problemMatcher"
:
"$gcc"
},
},
{
{
"label"
:
"清理项目(clean)"
,
"label"
:
"清理项目(
make
clean)"
,
"type"
:
"shell"
,
"type"
:
"shell"
,
"command"
:
"make clean"
,
"windows"
:
{
"command"
:
"cat
\"
${execPath}.tips
\\
env_tip.txt
\"
; echo VSCode安装路径-${execPath} ; echo 正在清理项目 ; make clean"
},
"linux"
:
{
"command"
:
"echo 正在清理项目 && make clean && echo 清理项目成功"
},
"args"
:
[],
"args"
:
[],
"group"
:
"build"
,
"group"
:
"build"
,
"presentation"
:
{
"presentation"
:
{
...
@@ -61,37 +71,36 @@
...
@@ -61,37 +71,36 @@
"problemMatcher"
:
"$gcc"
"problemMatcher"
:
"$gcc"
},
},
{
{
"label"
:
"
运行(run
)"
,
"label"
:
"
提交作业(git push
)"
,
"type"
:
"shell"
,
"type"
:
"shell"
,
"windows"
:
{
"windows"
:
{
"command"
:
"
make && .
\\
app.exe
"
"command"
:
"
cat
\"
${execPath}.tips
\\
python_tip.txt
\"
; python .vscode
\\
gitpush.py
"
},
},
"linux"
:
{
"linux"
:
{
"command"
:
"
make && ./app.exe
"
"command"
:
"
python3 .vscode/gitpush.py
"
},
},
"args"
:
[],
"args"
:
[],
"group"
:
"build"
,
"group"
:
"build"
,
"presentation"
:
{
"presentation"
:
{
"reveal"
:
"always"
,
"reveal"
:
"always"
,
"group"
:
"run"
,
"group"
:
"git-push"
"focus"
:
true
},
},
"problemMatcher"
:
"$gcc"
"problemMatcher"
:
"$gcc"
},
},
{
{
"label"
:
"
提交作业(git push)
"
,
"label"
:
"
内存检测
"
,
"type"
:
"shell"
,
"type"
:
"shell"
,
"windows"
:
{
"windows"
:
{
"command"
:
"
python .vscode
\\
gitpush.py
"
"command"
:
"
cat
\"
${execPath}.tips
\\
env_tip.txt
\"
; echo VSCode安装路径-${execPath} ; echo 正在使用Dr.Memory检测内存 ; make ; cmd.exe /c
\"
drmemory -- .
\\
app.exe '<' input1.txt
\"
"
},
},
"linux"
:
{
"linux"
:
{
"command"
:
"
python3 .vscode/gitpush.py
"
"command"
:
"
echo 正在使用 Valgrind 检测内存 && make && echo ***如果提示 /bin/bash: valgrind: command not found 可使用终端命令 sudo apt install valgrind 安装(需要连接互联网)*** && valgrind --leak-check=full ./app.exe < input1.txt
"
},
},
"args"
:
[],
"args"
:
[],
"group"
:
"build"
,
"group"
:
"build"
,
"presentation"
:
{
"presentation"
:
{
"reveal"
:
"always"
,
"reveal"
:
"always"
,
"group"
:
"
git-push
"
"group"
:
"
test
"
},
},
"problemMatcher"
:
"$gcc"
"problemMatcher"
:
"$gcc"
}
}
...
...
main.c
浏览文件 @
54ee15c8
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
int
main
()
int
main
()
{
{
int
x
,
y
;
int
x
,
y
;
int
*
p
=
malloc
(
116
);
scanf
(
"%d"
,
&
x
);
scanf
(
"%d"
,
&
x
);
if
(
x
<
1
)
if
(
x
<
1
)
...
...
makefile
浏览文件 @
54ee15c8
...
@@ -32,4 +32,4 @@ else
...
@@ -32,4 +32,4 @@ else
endif
endif
clean
:
clean
:
$(RM)
*
.exe
*
.o
$(RM)
*
.exe
*
.o result_comparation.html user_output
*
\ No newline at end of file
\ No newline at end of file
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论