lehrkraefte:blc:informatik:ffprg2017:ln:ln

This is an old revision of the document!


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;
}
  • lehrkraefte/blc/informatik/ffprg2017/ln/ln.1510296804.txt.gz
  • Last modified: 2017/11/10 07:53
  • by Ivo Blöchliger