W3Schools Tryit Editor
[
フレーム
]
Run ❯
Get your
own
website
Go to Spaces
Ctrl+Alt+P
#include
#include
#include
using namespace std; int main() { vector
numbers = {1, 7, 3, 5, 9, 2}; auto it = max_element(numbers.begin(), numbers.end()); if (it != numbers.end()) { cout << *it << " is the highest value"; } else { cout << "The vector is empty"; } return 0; }
9 is the highest value
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル