Setup Dev. Env./Ubuntu

우분투(Ubuntu) c++ 컴파일 설치 & 실행

ubiquitous4g 2021. 4. 12. 12:00

# install g++

sudo apt-get install g++
#hello.cpp

#include <iostream>

using namespace std;

int main(){

cout<<"Hello world"<<endl;

}

 

#compile

g++ -o hello hello.cpp

 

#run

./hello