This is an old revision of the document!
Programmieren mit C++
Installation einer IDE
- Unter Linux: gcc + Text-Editor
- Windows: gcc + MINGW + Texteditor oder VisualC++?
- Mac? Keine Ahnung… wohl gc + Text-Editor oder X-Code?
Hello World
- hello.cpp
// Kommentar #include <iostream> // Für Ein- und Ausgabe /* Mehrzeiliger Kommentar Damit einfach cout anstatt std::cout geschrieben werden kann. Gilt auch für endl anstatt std:endl */ using namespace std; // Start Hauptprogramm. Könnte int zurückgeben als Fehlercode // 0 heisst kein Fehler. int main() { cout << "Hello world!" << endl; }