"Gcc hello world 실습"의 두 판 사이의 차이

잔글 (로봇: 자동으로 텍스트 교체 (-<source lang='dos'> +<source lang='cli'>))
잔글 (로봇: 자동으로 텍스트 교체 (-[root@jmnote +[root@zetawiki))
3번째 줄: 3번째 줄:


<source lang='cli'>
<source lang='cli'>
[root@jmnote ~]# cat hello.c
[root@zetawiki ~]# cat hello.c
#include <stdio.h>
#include <stdio.h>
   
   
11번째 줄: 11번째 줄:
return 0;
return 0;
}
}
[root@jmnote ~]# gcc hello.c
[root@zetawiki ~]# gcc hello.c
[root@jmnote ~]# ./a.out
[root@zetawiki ~]# ./a.out
Hello, world!
Hello, world!
</source>
</source>

2015년 2월 12일 (목) 00:36 판

1 개요

gcc hello world
[root@zetawiki ~]# cat hello.c
#include <stdio.h>
 
int main(void)
{
	printf("Hello, world!\n");
	return 0;
}
[root@zetawiki ~]# gcc hello.c
[root@zetawiki ~]# ./a.out
Hello, world!

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}