相关代码如下#include<algorithm>
using namespace std;double max1=max_element(first,end);//first,end是指针
double min1=min(wn1],wn2);
编译后
error C2065: 'max_element' : undeclared identifier
为啥min函数可以用,max_element不能用那,它们不是在同一个头文件中吗?
using namespace std;double max1=max_element(first,end);//first,end是指针
double min1=min(wn1],wn2);
编译后
error C2065: 'max_element' : undeclared identifier
为啥min函数可以用,max_element不能用那,它们不是在同一个头文件中吗?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货