Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
Lab12
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸时代
CP Lab Group
实验项目模板
Lab12
提交
9b99031a
提交
9b99031a
12月 18, 2018
创建
作者:
赵鹏翀
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init template
上级
显示空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
119 行增加
和
0 行删除
+119
-0
.gitignore
.gitignore
+2
-0
case.c
case.c
+69
-0
case.cplproj
case.cplproj
+31
-0
case.h
case.h
+17
-0
case.puo
case.puo
+0
-0
没有找到文件。
.gitignore
0 → 100644
浏览文件 @
9b99031a
/Debug
/Release
case.c
0 → 100644
浏览文件 @
9b99031a
#include "case.h"
int
main
(
int
argc
,
char
*
argv
[])
{
case1
();
case2
();
case3
();
case4
();
case5
();
return
0
;
}
void
case1
()
{
int
i
=
add
(
1
,
2
);
}
int
add
(
int
i
,
int
j
)
{
return
i
+
j
;
}
void
case2
()
{
int
i
=
1
;
int
a
[
4
];
a
[
0
]
=
6
;
a
[
1
]
=
7
;
a
[
i
+
1
]
=
8
;
}
typedef
struct
_Rec
{
int
i
;
char
c
;
int
j
;
}
Rec
;
void
case3
()
{
Rec
x
;
x
.
j
=
1
;
x
.
c
=
x
.
j
;
x
.
i
=
x
.
j
;
}
typedef
struct
_TreeNode
{
int
val
;
struct
_TreeNode
*
lchild
,
*
rchild
;
}
TreeNode
;
void
case4
()
{
TreeNode
*
p
=
(
TreeNode
*
)
malloc
(
sizeof
(
TreeNode
));
p
->
lchild
=
p
;
p
=
p
->
rchild
;
}
void
case5
()
{
int
x
,
y
;
if
(
x
>
y
)
y
++
;
else
x
--
;
}
case.cplproj
0 → 100644
浏览文件 @
9b99031a
<?xml version="1.0" encoding="gb2312"?>
<OSLProject
Version=
"1.00"
Name=
"case"
SubjectID=
"11c951f4-9b13-40e1-8b73-39ba7d73b89b"
ProjectTemplateID=
"21300c80-71a5-47ed-be64-7c3dd03065a2"
>
<Configurations>
<Configuration
Name=
"Debug"
>
<Tool
Name=
"PreBuildEventTool"
/>
<Tool
Name=
"CustomBuildTool"
/>
<Tool
Name=
"GCCCompilerTool"
PreprocessorDefinitions=
"_DEBUG"
GenerateDebugInformation=
"-1"
/>
<Tool
Name=
"PreLinkEventTool"
/>
<Tool
Name=
"GCCLinkerTool"
/>
<Tool
Name=
"PostBuildEventTool"
/>
</Configuration>
<Configuration
Name=
"Release"
>
<Tool
Name=
"PreBuildEventTool"
/>
<Tool
Name=
"CustomBuildTool"
/>
<Tool
Name=
"GCCCompilerTool"
PreprocessorDefinitions=
"NDEBUG"
/>
<Tool
Name=
"PreLinkEventTool"
/>
<Tool
Name=
"GCCLinkerTool"
/>
<Tool
Name=
"PostBuildEventTool"
/>
</Configuration>
</Configurations>
<Files>
<Filter
Name=
"ͷļ"
Filter=
"h;hpp;hxx"
>
<File
RelativePath=
".\case.h"
>
</File>
</Filter>
<Filter
Name=
"Դļ"
Filter=
"cpp;c;cc;cxx"
>
<File
RelativePath=
".\case.c"
>
</File>
</Filter>
</Files>
</OSLProject>
case.h
0 → 100644
浏览文件 @
9b99031a
#ifndef _CASE_H_
#define _CASE_H_
#include <stdio.h>
void
case1
();
void
case2
();
void
case3
();
void
case4
();
void
case5
();
int
add
(
int
i
,
int
j
);
#endif
/* _CASE_H_ */
case.puo
0 → 100644
浏览文件 @
9b99031a
添加文件
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论