Compiling... stock.cpp c:\Documents and Settings\Josh\My Documents\Visual Studio Projects\My Projects\Expo Project\Economics AI\stock.cpp(109) : warning C4244: 'initializing' : conversion from 'int' to 'float', possible loss of data c:\Documents and Settings\Josh\My Documents\Visual Studio Projects\My Projects\Expo Project\Economics AI\stock.cpp(150) : warning C4018: '<=' : signed/unsigned mismatch c:\Documents and Settings\Josh\My Documents\Visual Studio Projects\My Projects\Expo Project\Economics AI\stock.cpp(204) : warning C4018: '<=' : signed/unsigned mismatch c:\Documents and Settings\Josh\My Documents\Visual Studio Projects\My Projects\Expo Project\Economics AI\stock.cpp(211) : warning C4244: '=' : conversion from 'std::vector<_Ty>::size_type' to 'float', possible loss of data with [ _Ty=float ] c:\Documents and Settings\Josh\My Documents\Visual Studio Projects\My Projects\Expo Project\Economics AI\stock.cpp(264) : warning C4244: 'initializing' : conversion from 'float' to 'int', possible loss of data c:\Documents and Settings\Josh\My Documents\Visual Studio Projects\My Projects\Expo Project\Economics AI\stock.cpp(380) : warning C4244: '=' : conversion from 'double' to 'float', possible loss of data c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(98) : error C2825: '_Iter::iterator_category': cannot form a qualified name c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(598) : see reference to class template instantiation 'std::iterator_traits<_Iter>' being compiled with [ _Iter=std::allocator<float>::value_type ] c:\Documents and Settings\Josh\My Documents\Visual Studio Projects\My Projects\Expo Project\Economics AI\stock.cpp(39) : see reference to function template instantiation 'void std::vector<_Ty>::assign<std::allocator<_Ty>::value_type>(_Iter,_Iter)' being compiled with [ _Ty=float, _Iter=std::allocator<float>::value_type ] c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(98) : error C2039: 'iterator_category' : is not a member of 'operator``global namespace''' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(98) : error C2146: syntax error : missing ';' before identifier 'iterator_category' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(99) : error C2825: '_Iter::value_type': cannot form a qualified name c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(99) : error C2039: 'value_type' : is not a member of 'operator``global namespace''' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(99) : error C2146: syntax error : missing ';' before identifier 'value_type' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(100) : error C2825: '_Iter::difference_type': cannot form a qualified name c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(100) : error C2039: 'difference_type' : is not a member of 'operator``global namespace''' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(100) : error C2146: syntax error : missing ';' before identifier 'difference_type' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(102) : error C2825: '_Iter::pointer': cannot form a qualified name c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(102) : error C2039: 'pointer' : is not a member of 'operator``global namespace''' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(102) : error C2146: syntax error : missing ';' before identifier 'pointer' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(103) : error C2825: '_Iter::reference': cannot form a qualified name c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(103) : error C2039: 'reference' : is not a member of 'operator``global namespace''' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xutility(103) : error C2146: syntax error : missing ';' before identifier 'reference' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\vector(598) : error C2664: 'void std::vector<_Ty>::_Assign<_Iter>(_Iter,_Iter,std::_Int_iterator_tag)' : cannot convert parameter 3 from 'std::iterator_traits<_Iter>::iterator_category' to 'std::_Int_iterator_tag' with [ _Ty=float, _Iter=std::allocator<float>::value_type ] and [ _Iter=std::allocator<float>::value_type ] No constructor could take the source type, or constructor overload resolution was ambiguous Economics AI - 16 error(s), 6 warning(s)
------------------
When I try and look at the errors it points me to some source that I've never even seen before, looks like iterator code. Do I need to change certain things in my code when I make the transition from 6? Any help would be greatly appreciated.

New Topic/Question
Reply




MultiQuote



|