Skip to content

Instantly share code, notes, and snippets.

@javierarilos
Created September 10, 2015 08:27
Show Gist options
  • Save javierarilos/7ad7d26b0cf47cd480be to your computer and use it in GitHub Desktop.
Save javierarilos/7ad7d26b0cf47cd480be to your computer and use it in GitHub Desktop.
Hello World C++ with compilation instructions (Linux)
// two options to compile:
// gcc hello.cpp -o hello -x c++ -v -lstdc++
// g++ hello.cpp -o hello
// then execute:
// ./hello
#include <iostream>
int main(void)
{
std::cout << "Hello World!";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment