리눅스에서 C++ 컴파일하기

1 개요[ | ]

리눅스 C++ 컴파일하기
jmnote@zetawiki:~$ cat a.cpp 
#include <iostream>
using namespace std;

int main() {
	int x=10;
	int y=25;
	int z=x+y;
	cout<<"Sum of x+y = " << z << "\n";
}
jmnote@zetawiki:~$ g++ a.cpp 
jmnote@zetawiki:~$ ./a.out 
Sum of x+y = 35

2 같이 보기[ | ]

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