Created
September 10, 2015 08:27
-
-
Save javierarilos/7ad7d26b0cf47cd480be to your computer and use it in GitHub Desktop.
Hello World C++ with compilation instructions (Linux)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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