Hi Marc!
[...] Gleich der erste Link bringt mich auf eine Seite, deren HelloWorld-Programm schon mal einen guten Eindruck macht: http://www.mathematik.uni-marburg.de/~cpp/
Nicht wirklich:
#include <iostream.h> // richtig: #include <iostream>
void main() // richtig: int main() bzw. int main(void)
{
cout << "Hallo Welt!" << endl; // richtig: std::cout
// es fehlt: return 0;
}
Das sieht man übrigens auch, wenn man versucht, obiges Programm mit dem g++ (einem sehr standardkonformen Compiler zu kompilieren):
Warnung: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated heade r <iostream.h>. To disable this warning use -Wno-deprecated. cpp.cpp:5: Fehler: »main« muss »int« zurückgeben
Grüße, Fabian St.
P.s. Hast du meine Email vom 27.4 erhalten?
Meine Website: http://fabis-site.net --> XHTML, CSS, PHP-Formmailer, Linux --------------------- fabi@erde ~# whatis spam spam: nothing appropriate --------------------- Selfcode: ie:% fl:| br:^ va:) ls:& fo:) rl:( n4:° ss:| de:> js:| ch:| mo:) zu:)