I would love to know what the code below means
I just want to know how it works tbh.
vector<int> lotteryNumVect(10); // I do not understand this part.
int lotteryNumArray[5] = {4, 13, 14, 24, 34}; // I understand this part.
lotteryNumVect.insert(lotteryNumVect.begin(), lotteryNumArray,
lotteryNumArray + 3); // I do not understand this part.
cout << lotteryNumVect.at(2) << endl; // I understand this part.
vector <int> lotteryNumVect(10);
creates a vector ofint
with 10 default constructedint
s in it.*
characters that made it invalid but it's better now.