Lesson 10 of 24
vector: वाढणारा Array
9 min 30 XP
STL (Standard Template Library) ही C++ ची superpower आहे. vector म्हणजे वाढणारा array: push_back जोडते, size() मोजते, v[i] किंवा v.at(i) वाचते. Competitive programmers सगळीकडे vectors वापरतात.
Example: edit me and press Run
Output Loading C++ (first time takes a few seconds)
Press Run to see the result here.v.at(i) मर्यादा तपासते आणि exception देते; v[i] तपासत नाही पण वेगवान आहे.