1500字范文,内容丰富有趣,写作好帮手!
1500字范文 > C++ max()函数 error: no matching function for call to 'max'

C++ max()函数 error: no matching function for call to 'max'

时间:2021-07-18 02:37:09

相关推荐

C++ max()函数 error: no matching function for call to 'max'

综述

C++的max/min函数一般都很常用。一般来说如果是windows的话,头文件<windows.h>是有定义min,max的。

#include <windows.h>

但是mac上一般(基于C11)可以使用

#include <algorithm>

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。