C++ · ОСНОВЫ · LESSON 14
Growing list
vector · about 12 minutes
Learning with progressRead the summary for free. To save the work, log in to the account.
Type the code yourself
Manually type the program from the sample. So you'll remember commands and brackets.
#include <iostream>
#include <vector>
using namespace std;
int main() {
vector<int> nums = {1, 2};
cout << nums.size() << endl;
return 0;
}Open the editor for class workSolve it yourself
Создай vector<int> nums из чисел 2, 4, 6 и выведи размер через size().
The answer is hidden. Use similar examples from the lesson notes.
Opening up your homework