Using GCC with MinGW #1
ビルドは通るけど何で標準出力に表示されないのかなぁ。 Get Started with C++ and Mingw-w64 in Visual Studio Code
#include <iostream> #include <vector> #include <string> using namespace std; int main() { vector<string> msg {"Hello", "C++", "World", "from", "VS Code", "and the C++ extension!"}; for (const string& word : msg) { cout << word << " "; } cout << endl; }