macのターミナルでC++のコードをコンパイルして実行する

以下のコマンドでコンパイル

$ c++ helloworld.cpp -o helloworld

以下のコマンドで実行.

$ ./helloworld