Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
// Fehlermeldung nummer 1
89 C:\Dev-Cpp123\include\c++\3.4.2\backward\iostream.h:31, from main.cpp In file included from C:/Dev-Cpp123/include/c++/3.4.2/backward/iostream.h:31, from main.cpp
// Fehlermeldung nummer 2
89 C:\Dev-Cpp123\main.cpp from main.cpp
// Fehlermeldung nummer 3
32:2 C:\Dev-Cpp123\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.
// Fehlermeldung nummer 4
91 C:\Dev-Cpp123\main.cpp `main' must return `int'
And the last one Fehlermeldung nummer 5
C:\Dev-Cpp123\Makefile.win [Build Error] [main.o] Error 1
#include <iostream> // Wir gehen nach dem Standard vor, deshalb kein iostream.h
using namespace std; // Kann man auch weglassen, siehe unten
int main() { // Hier definierst du den Rückgabetyp als "int"
cout << "Hello World\n"; // ohne die using-Direktive weiter oben müsste das stehen:
// std::cout << "Hello World\n";
return 0; // main() gibt immer 0 zurück, wenn kein Fehler aufgetreten ist
}
Und hier nochmal díe Netten Fehlermeldungen zum Mitnehmen#include <iostream.h>
void main()
{
float a;
float b;
cout<<"Bitte geben Sie den Radius ein: ";
cin>>a;
cout<<"Bitte geben Sie die Hoehe ein: ";
cin>>b;
cout<<"Das Volumen betraegt: "<<3.14*a*a*b/3<<endl;
};
C:\Dev-Cpp123\include\c++\3.4.2\backward\iostream.h:31, from 123.cpp In file included from C:/Dev-Cpp123/include/c++/3.4.2/backward/iostream.h:31, from 123.cpp
C:\Dev-Cpp123\Projekte\123.cpp from 123.cpp
C:\Dev-Cpp123\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.
C:\Dev-Cpp123\Projekte\123.cpp `main' must return `int'
C:\Dev-Cpp123\Projekte\Makefile.win [Build Error] [123.o] Error 1
#include <iostream.h>
int main(int argc, char *argv[])
{
float a;
float b;
cout<<"Bitte geben Sie den Radius ein: ";
cin>>a;
cout<<"Bitte geben Sie die Hoehe ein: ";
cin>>b;
cout<<"Das Volumen betraegt: "<<3.14*a*a*b/3<<endl;
return 0;
};