Title here
Summary here
hello-world.cpp
and use a C++ compiler to compile and execute it.#include <iostream>
int main() {
std::cout << "hello world" << std::endl;
return 0;
}
hello-world.cpp
and use a C++ compiler to compile and execute it.$ g++ hello-world.cpp -o hello-world
$ ./hello-world
hello world
First, compile the code into an executable:
$ g++ hello-world.cpp -o hello-world
$ ls
hello-world hello-world.cpp
$ ./hello-world
hello world