// sample-hello.cpp: the classic first C++ program. // Free sample from 99helpers.com/file-types/cpp // // Build and run: c++ sample-hello.cpp -o hello && ./hello // Windows (MSVC): cl /EHsc sample-hello.cpp then sample-hello.exe #include int main() { std::cout << "Hello, world!\n"; }