c++中min和max函數

包含在c++標準庫中頭文件<algorithm>中,在頭文件<windows.h>中定義了min,max的宏,若在包含<algorithm>的同時包含<windows.h>會致使函數沒法使用。ios <windows.h>提供了_cpp_min等函數來代替min函數的功能。c++ C++11標準:<algorithm>中min函數的原型windows default (1) template <c
相關文章
相關標籤/搜索