Bonjour,
j'ai téléchargé DEVC++ pour programmer en C++. J'ai commencé par un programme simple :
mais le compilateur m'affiche un tas d'erreurs qui sont les suivantes :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 #include <iostream> void main() { cout << "premier programme C++"; }
Que dois-je faire ? je ne comprend pas où il y a une erreur. Merci de votre aide.1 C:\Dev-Cpp\include\c++\3.4.2\backward\iostream.h:31, from projet1.cpp In file included from C:/Dev-Cpp/include/c++/3.4.2/backward/iostream.h:31, from projet1.cpp
1 C:\Dev-Cpp\projet1.cpp from projet1.cpp
32:2 C:\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.
3 C:\Dev-Cpp\projet1.cpp `main' must return `int'
C:\Dev-Cpp\Makefile.win [Build Error] [projet1.o] Error 1
xavier
Partager