Alexon
Ensign
- Registriert
- Sep. 2008
- Beiträge
- 222
Noob-Prob: include iostream.h
Hi,
ich habe gerade angefangen c++ kennenzulernen, ich benutze den Dev-C++ Compiler.
leider ist schon beim einfachsten Programm ein Problem aufgetreten:
Das Fenster zeigt nicht Hello World! an, sondern schließt sofort wieder. Folgende Warnung kann mir nur gegeben werden:
#include <iostream.h> wird als "deprecated" bezeichnet:
"32:2 D:\Informatik\Dev-Cpp\include\c++\3.4.2\backward\backward_warning.h #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 header <iostream.h>. To disable this warning use -Wno-deprecated. "
Nun habe ich es mit
#include <iostream> versucht. doch so tauchen dann Errors im "Hallo, Welt" -Programm auf.
Kann mir jemand da weiterhelfen?
Hi,
ich habe gerade angefangen c++ kennenzulernen, ich benutze den Dev-C++ Compiler.
leider ist schon beim einfachsten Programm ein Problem aufgetreten:
Code:
1: #include <iostream.h>
2:
3:
4: int main()
5: {
6: cout <<"Hello World!\n";
7: return 0;
8: }
Das Fenster zeigt nicht Hello World! an, sondern schließt sofort wieder. Folgende Warnung kann mir nur gegeben werden:
#include <iostream.h> wird als "deprecated" bezeichnet:
"32:2 D:\Informatik\Dev-Cpp\include\c++\3.4.2\backward\backward_warning.h #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 header <iostream.h>. To disable this warning use -Wno-deprecated. "
Nun habe ich es mit
#include <iostream> versucht. doch so tauchen dann Errors im "Hallo, Welt" -Programm auf.
Kann mir jemand da weiterhelfen?
Zuletzt bearbeitet: