Skip to content
Snippets Groups Projects
Commit e2e1ab8c authored by LEESANGKYEONG's avatar LEESANGKYEONG
Browse files

Update

parent 52a1ddf3
Branches
No related tags found
No related merge requests found
# 실전코딩 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%9C%A0%EB%8B%89%EC%8A%A4%EC%9D%98-stdin-stdout-stderr-%EA%B7%B8%EB%A6%AC%EA%B3%A0-pipes%EC%97%90-%EB%8C%80%ED%95%B4-%EC%95%8C%EC%95%84%EB%B3%B4%EC%9E%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와 동일))
image/2.PNG

16.8 KiB

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment