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}; sort(numbers.begin(), numbers.end()); auto it = lower_bound(numbers.begin(), numbers.end(), 4); if (it != numbers.end()) { cout << *it << " is the first value at or above 4"; } else { cout << "No elements found at or above the lower bound"; } return 0; }
5 is the first value at or above 4
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル