我使用的是VS2015,按照课程输入2-5插入排序算法后尝试编译,结果报错如下:
Error C4996 'std::_Copy_impl': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' SelectionSort c:\program files (x86)\microsoft visual studio 14.0\vc\include\xutility 2229
求如何修改代码才能通过编译。