g++
Inviato: dom 1 mag 2005, 16:11
sto da poco iniziando a programmare in c++, e compilando un programmino molto elementare, viene fuori questo :
<BR>
<BR>In file included from /usr/include/c++/3.3.5/backward/iostream.h:31,
<BR> from cambiavaluta_euro.cpp:1:
<BR>/usr/include/c++/3.3.5/backward/backward_warning.h:32:2: warning: #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 <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
<BR>cambiavaluta_euro.cpp:21:2: warning: no newline at end of file
<BR>
<BR>
<BR>perche´ mi da quel warning? ho incluso iostream.h, pensavo ci andasse quella o.O
<BR>
<BR>ho compilato da linea di comando con queste opzioni
<BR>g++ cambiavaluta_euro.cpp -o cambiavaluta_euro
<BR>poi ho messo -Wno-deprecated e nn c´e´ piu´ il warning ma..c´e´ un modo per disabilitarlo automaticamente a ogni compilazione?
<BR>
<BR>e perche´, poi, lo fa? o.O
<BR>
<BR>
<BR>il codice del programma e´ questo :
<BR>
<BR>#include <iostream.h>
<BR>
<BR>int main()
<BR>{
<BR> cout << "----Euro Convertitore di GameSoul--------\n";
<BR> cout << " Immetti il valore in lire da convertire: ";
<BR>
<BR> float cambio=1936.27;
<BR> float daconvertire;
<BR> float convertito;
<BR>
<BR> cin >> daconvertire;
<BR>
<BR> convertito = daconvertire/cambio;
<BR>
<BR> cout << "\nIl valore convertito e´ " << convertito << " euro.\n";
<BR>
<BR> return 0;
<BR>
<BR>}<br>
<BR>
<BR>In file included from /usr/include/c++/3.3.5/backward/iostream.h:31,
<BR> from cambiavaluta_euro.cpp:1:
<BR>/usr/include/c++/3.3.5/backward/backward_warning.h:32:2: warning: #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 <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
<BR>cambiavaluta_euro.cpp:21:2: warning: no newline at end of file
<BR>
<BR>
<BR>perche´ mi da quel warning? ho incluso iostream.h, pensavo ci andasse quella o.O
<BR>
<BR>ho compilato da linea di comando con queste opzioni
<BR>g++ cambiavaluta_euro.cpp -o cambiavaluta_euro
<BR>poi ho messo -Wno-deprecated e nn c´e´ piu´ il warning ma..c´e´ un modo per disabilitarlo automaticamente a ogni compilazione?
<BR>
<BR>e perche´, poi, lo fa? o.O
<BR>
<BR>
<BR>il codice del programma e´ questo :
<BR>
<BR>#include <iostream.h>
<BR>
<BR>int main()
<BR>{
<BR> cout << "----Euro Convertitore di GameSoul--------\n";
<BR> cout << " Immetti il valore in lire da convertire: ";
<BR>
<BR> float cambio=1936.27;
<BR> float daconvertire;
<BR> float convertito;
<BR>
<BR> cin >> daconvertire;
<BR>
<BR> convertito = daconvertire/cambio;
<BR>
<BR> cout << "\nIl valore convertito e´ " << convertito << " euro.\n";
<BR>
<BR> return 0;
<BR>
<BR>}<br>