Ahojte prekladam a učim sa z knihy c++ Principles and Practicles ako IDE som si zvolil Dev-Cpp vez 5.3.0.3
pri pokuse preložit:
#include<std_lib_facilities.h>
int main()
{
try{
vector<int>v;
int x;
while(cin>>x) v.push_back(x);
for(int i=0;i<=v.size();++i)
cout<<"v["<<i<<"]=="<<v[i]<<endl;
}catch(out_of_range_error){
cerr<<"Range error!!\n";
return 1;
}
}
Mi to vypíše túto chybovú hlášku.
33 2 c:\program files (x86)\dev-cpp\mingw64\lib\gcc\x86_64-w64-mingw32\4.6.1\include\c++\backward\backward_warning.h [Warning] #warning This file includes at least one deprecated or antiquated header which may be removed without further notice at a future date. Please use a non-deprecated interface with equivalent functionality instead. For a listing of replacement headers and interfaces, consult the file backward_warning.h. To disable this warning use -Wno-deprecated. [-Wcpp
Otázka čo stým?
Ďakujem za odpoved.