C++
Version vom 2. November 2017, 10:11 Uhr von Thomas (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „=Hello World= ==Sourcecode== *cat hello-world.cc <pre> cat hello-world.cc #include <iostream> int main() { std::cout << "Hallo Welt!" << std::endl; } </…“)
Hello World
Sourcecode
- cat hello-world.cc
cat hello-world.cc #include <iostream> int main() { std::cout << "Hallo Welt!" << std::endl; }
Compile
- g++ hello-world.cc -o hello-world
Result
file *
hello-world: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked ... hello-world.c: C source, ASCII text
Run
- ./hello-world
Hallo Welt!