Jean implx
About
-
Profession
SUPERVISOR HARDBOARD
Skills
Content, Expenses
Posted Answers
Answer
- Lightweight clothing made with breathable materials.
- Modest clothing that doesn't expose a lot of skin.
- Evening attire for restaurants and events.
- Multiple sets of swimwear.
- Flip-flops.
- Sunscreen with a high protection factor.
- Sun hats and caps.
- Sunglasses.
Answer is posted for the following question.
Answer
1
#include
2
using namespace std;
3
int main(){
4
vector<int> v;
5
//Insert values 1 to 10
6
v.push_back(20);
7
v.push_back(10);
8
v.push_back(30);
9
v.push_back(20);
10
v.push_back(40);
11
v.push_back(20);
12
v.push_back(10);
13
14
vector<int>::iterator new_end;
15
new_end = remove(v.begin(), v.end(), 20);
16
17
for(int i=0;i<v.size(); i++){
18
cout << v[i] << " ";
19
}
20
//Prints [10 30 40 10]
21
return 0;
22
}
23
C++Copy
Source: Tutorials Point
Answer is posted for the following question.
How to remove element by value vector c++ (C++ Programming Language)