Hi, I wanted to write a program that used nested vectors. The nested vector would contain the sides of the triangles of the outer vector. I am not sure how to handle it.
1 2 3 4 5 6 7
vector<vector<int> sides> triangles; //empty vector
for(int i = 13; i >= 1; i--) {
for(int j = 15- 1 - i; j>=1; j--) {
//I am not sure how to handle the vectors here
}
}
For clarity, the problem is "List all of the different triangles with a perimeter of 15." I apologize if I am being vague; I am not quite sure how to ask the question.