Skip to content
Snippets Groups Projects
Commit d1fc46c7 authored by Hwanyong Lee's avatar Hwanyong Lee
Browse files

All Lab

parent e9868db4
Branches main
No related tags found
No related merge requests found
../../foss/lab0318/hfile1
\ No newline at end of file
AMUGEONA
AMUGEONA
#include <stdio.h>
int main()
{
int a;
fscanf(stdin, "%d", &a);
fprintf(stdout, "Hello stdout %d\n",a);
fflush(stdout);
fprintf(stderr, "Hello stderr %d\n",a+100);
fflush(stderr);
return 0;
}
Hello stderr 1100
File added
Hello stdout 999
#include <stdio.h>
int main()
{
int a;
fscanf(stdin, "%d", &a);
fprintf(stdout, "%d\n",a+100);
fprintf(stderr, "Hello stderr %d\n",a+100);
fflush(stderr);
fflush(stdout);
return 0;
}
Hello stderr 1100
2000
Hello stdout 2000
1
2
3
BABOYA
YAYA
#include <stdio.h>
int main()
{
int a;
fscanf(stdin, "%d", &a);
fprintf(stdout, "%d\n",a+100);
fprintf(stderr, "Hello stderr %d\n",a+100);
fflush(stderr);
fflush(stdout);
return 0;
}
900
99899
33456
total 32
-rwxr-xr-x 1 oss000 foss 8536 3월 22 12:07 a.out
-rw-r--r-- 1 oss000 foss 170 3월 22 12:06 hello.c
-rw-r--r-- 1 oss000 foss 6 3월 22 12:18 inputfile
-rw-r--r-- 1 oss000 foss 0 3월 22 12:22 lsresult.txt
-rw-r--r-- 1 oss000 foss 25 3월 18 13:11 sl
-rw-r--r-- 1 oss000 foss 25 3월 18 13:12 slink_str
-rw-r--r-- 1 oss000 foss 24 3월 18 13:03 std_id2
1000
AMUGEONA
111111111111111
AMUGEONA
111111111111111
Hello stderr 2100
Hello stderr 2100
Hello stderr 2100
Hello stderr 2100
Hello stderr 2100
Hello stdout 2000
Hello stdout 2000
Hello stdout 2000
Hello stdout 2000
Hello stdout 2000
Hello stdout 2000
Hello stdout 2000
Hello stdout 2000
Hello stdout 2000
Hello stdout 2000
Hwanyong Lee - 20161002
Hello stderr 2100
Hello stdout 2000
Hello stderr 900
900
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment