@@ -141,33 +141,33 @@ int main() {
141
141
142
142
Node *head = nullptr ;
143
143
144
- cout << " Inserindo no final os elementos [1, 2, 3]:" << endl;
144
+ cout << " Inserting the elements at the end [1, 2, 3]:" << endl;
145
145
push_back (&head, 1 );
146
146
push_back (&head, 2 );
147
147
push_back (&head, 3 );
148
148
print_list (head);
149
149
150
- cout << " Inserindo no inicio os elementos [0, -1, -2]:" << endl;
150
+ cout << " Inserting the elements at the beginning [0, -1, -2]:" << endl;
151
151
push_front (&head, 0 );
152
152
push_front (&head, -1 );
153
153
push_front (&head, -2 );
154
154
print_list (head);
155
155
156
- cout << " Inserindo nas posicoes 3, 4, 5 os elementos [997, 998, 999] respectivamente :" << endl;
156
+ cout << " Inserting in positions 3, 4, 5 the elements [997, 998, 999] respectively :" << endl;
157
157
insert_in_position (&head, 997 , 3 );
158
158
insert_in_position (&head, 998 , 4 );
159
159
insert_in_position (&head, 999 , 5 );
160
160
print_list (head);
161
161
162
- cout << " Removendo ultimo elemento :" << endl;
162
+ cout << " Removing last element :" << endl;
163
163
pop_back (&head);
164
164
print_list (head);
165
165
166
- cout << " Removendo primeiro elemento :" << endl;
166
+ cout << " Removing first element :" << endl;
167
167
pop_front (&head);
168
168
print_list (head);
169
169
170
- cout << " Removendo elemento na posicao 2:" << endl;
170
+ cout << " Removing element in position 2:" << endl;
171
171
remove_from_position (&head, 2 );
172
172
print_list (head);
173
173
}
0 commit comments