前提

WIndows OS

Visual Studio Code

 

プログラム

test.cpp

#include <stdio.h>

int main(void){

    printf("Hello");

    return 0;

}

 

コンパイル

g++ -o test test.cpp

 

実行

./test.exe

 

出力結果

Hello