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
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
During summer vacation, Gitlab will be restart frequently. Use it carefully.
Show more breadcrumbs
LEESANGKYEONG
battle_c
Commits
e2e1ab8c
Commit
e2e1ab8c
authored
Aug 9, 2020
by
LEESANGKYEONG
Browse files
Options
Downloads
Patches
Plain Diff
Update
parent
52a1ddf3
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+15
-7
15 additions, 7 deletions
README.md
image/2.PNG
+0
-0
0 additions, 0 deletions
image/2.PNG
with
15 additions
and
7 deletions
README.md
+
15
−
7
View file @
e2e1ab8c
# 실전코딩 HW1
# 실전코딩 HW1
-
redirection stderr, stdout, stdin
# rediretion
# rediretion
-
프로그램 결과 혹은 출력을 파일이나 다른 스트림으로 전달할때 사용
-
프로그램 결과 혹은 출력을 파일이나 다른 스트림으로 전달할때 사용
-
사용법: > ("전달 받을 파일")
-
사용법:
("출력")
> ("전달 받을 파일")
-
!
[
1
](
./image/1.PNG
)
-
!
[
1
](
./image/1.PNG
)
# stdio.h
# stdio.h
-
Standard Stream
-
!
[
2
](
./image/2.PNG
)
-
출처
<
"
https:
//
velog.io
/@
jakeseo_me
/%
EC
%9
C
%
A0
%
EB
%8
B
%89%
EC
%8
A
%
A4
%
EC
%9
D
%98
-stdin-stdout-stderr-
%
EA
%
B7
%
B8
%
EB
%
A6
%
AC
%
EA
%
B3
%
A0-pipes
%
EC
%97%90
-
%
EB
%8
C
%80%
ED
%95%
B4-
%
EC
%95%8
C
%
EC
%95%84%
EB
%
B3
%
B4
%
EC
%9
E
%90"
>
## stdin
## stdin
-
-
표준 입력은 프로그램에 입력되는 데이터의 표준적인 출력을 말한다.
## sdterr
-
쉘에서의 표준 입력은 키보드로 되어 있고, C에서
<stdio.h>
에서는 File
*
stdin를 이용한다.
-
-
사용법: fscanf(stdin, (이하 scanf와 동일))
## stdout
-
redirection stderr, stdout, stdin에 대해서 배웠음
## stdout
\ No newline at end of file
-
표준 출력은 프로그램에서 출력되는 데이터의 표준적인 방향을 말한다
-
사용법: fprintf(stdout, (이하 printf와 동일))
## sdterr
-
표준 출력을 보낼 때, 오류가 발생하면 오류 내용을 출력한다.
-
사용법: fprintf(stderr, (이하 printf와 동일))
This diff is collapsed.
Click to expand it.
image/2.PNG
0 → 100644
+
0
−
0
View file @
e2e1ab8c
16.8 KiB
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