定义在<algorithm>里面 用法:
1 2 3 4 5 |
int a[5] = {0, 3, 9, 4, 5}; int *b; b = max_element(a, a+5); cout << *b; |
❤ 点击这里 -> 订阅《PAT | 蓝桥 | LeetCode学习路径 & 刷题经验》by 柳婼
定义在<algorithm>里面 用法:
1 2 3 4 5 |
int a[5] = {0, 3, 9, 4, 5}; int *b; b = max_element(a, a+5); cout << *b; |
❤ 点击这里 -> 订阅《PAT | 蓝桥 | LeetCode学习路径 & 刷题经验》by 柳婼