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

Merge branch 'master' of https://git.ajou.ac.kr/LEE/battle_c

parents 4907bef7 e4b7a03b
No related branches found
No related tags found
No related merge requests found
# battle_c
## Sangkyeong Lee - Team 4
실전코딩2 실습
## printf
### stdio.h
redirection stderr, stdout, stdin에 대해서 배웠음
\ No newline at end of file
*.exe
hello.c 0 → 100644
#include <stdio.h>
int main() {
int a;
fscanf(stdin, "%d", &a);
if (a > 0)
fprintf(stderr, "Error: it is positive\n");
else
fprintf(stderr, "Error: it is negative\n");
fprintf(stdout, "Hello World %-10d\n", a);
}
Hello World 100
Hello World 100
Error: it is positive
Hello World 100
three_files @ 4907bef7
Subproject commit 4907bef7de34fa54a0b3bba6cb93e78a6cc32d2d
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment