Doenertier
Neuling
Thread Starter
- Mitglied seit
- 22.12.2004
- Beiträge
- 53
Hi,
ich bekomme bei dev c++ immer folgende Fehlermeldung:
1 C:\Programme\Dev-Cpp\include\c++\3.4.2\backward\iostream.h:31, from D:\C++ & Co\C\j++.cpp In file included from C:/Programme/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:31, from D:\C++ & Co\C\j++.cpp
1 D:\C++ & Co\C\j++.cpp from D:\C++ & Co\C\j++.cpp
32:2 C:\Programme\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.
5 D:\C++ & Co\C\j++.cpp `main' must return `int'
So sieht mein Programm aus:
#include <iostream.h>
void main (void)
{
int i,j;
cout <<"Ganze Zahl eingeben:";
cin >>j;
i = 1000*(++j);
cout <<"++ Vor der Variable ergibt:" <<i<<endl;
j--; //Erhöhung zurück nehmen
i =1000 * (j--);
cout <<"-- Nach der Variable ergibt:" <<i<<endl;
}
ich bekomme bei dev c++ immer folgende Fehlermeldung:
1 C:\Programme\Dev-Cpp\include\c++\3.4.2\backward\iostream.h:31, from D:\C++ & Co\C\j++.cpp In file included from C:/Programme/Dev-Cpp/Bin/../lib/gcc/mingw32/3.4.2/../../../../include/c++/3.4.2/backward/iostream.h:31, from D:\C++ & Co\C\j++.cpp
1 D:\C++ & Co\C\j++.cpp from D:\C++ & Co\C\j++.cpp
32:2 C:\Programme\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.
5 D:\C++ & Co\C\j++.cpp `main' must return `int'
So sieht mein Programm aus:
#include <iostream.h>
void main (void)
{
int i,j;
cout <<"Ganze Zahl eingeben:";
cin >>j;
i = 1000*(++j);
cout <<"++ Vor der Variable ergibt:" <<i<<endl;
j--; //Erhöhung zurück nehmen
i =1000 * (j--);
cout <<"-- Nach der Variable ergibt:" <<i<<endl;
}