Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
battle_c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
이장원
battle_c
Commits
e4a00e19
Commit
e4a00e19
authored
4 years ago
by
wkddnjs3268
Browse files
Options
Downloads
Patches
Plain Diff
0805
parent
aad92629
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
three_files/func.c
+11
-0
11 additions, 0 deletions
three_files/func.c
three_files/func.h
+3
-0
3 additions, 0 deletions
three_files/func.h
three_files/main.c
+20
-0
20 additions, 0 deletions
three_files/main.c
with
34 additions
and
0 deletions
three_files/func.c
0 → 100644
+
11
−
0
View file @
e4a00e19
#include
"func.h"
int
func1
(
int
a
)
{
return
(
a
*
10
);
}
int
func2
(
int
a
)
{
return
(
a
*
2
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
three_files/func.h
0 → 100644
+
3
−
0
View file @
e4a00e19
#pragma once
#define DF(a) ((a)*(a))
extern
int
func1
(
int
x
);
\ No newline at end of file
This diff is collapsed.
Click to expand it.
three_files/main.c
0 → 100644
+
20
−
0
View file @
e4a00e19
#include
<stdio.h>
#include
"func.h"
#define PRINT_ID
int
func_name_or_id
()
{
#ifdef PRINT_ID
printf
(
"201920756"
);
return
0
;
#else
printf
(
""
);
return
1
;
#endif
}
int
main
()
{
func_name_or_id
();
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment