Skip to content

Commit d9f0adf

Browse files
authored
Merge pull request kelvins#167 from ricardocarva/SinglyLinkedList
Translated SinglyLinkedList in cpp to english
2 parents 97d4251 + 895a076 commit d9f0adf

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ Com o objetivo de alcançar uma abrangência maior e encorajar mais pessoas a co
19881988
</a>
19891989
</td>
19901990
<td> <!-- C++ -->
1991-
<a href="./src/cpp/ListaEncadeada.cpp">
1991+
<a href="./src/cpp/SinglyLinkedList.cpp">
19921992
<img align="center" height="25" src="https://cdn.jsdelivr.net/gh/devicons/devicon/icons/cplusplus/cplusplus-original.svg" />
19931993
</a>
19941994
</td>

src/cpp/ListaEncadeada.cpp renamed to src/cpp/SinglyLinkedList.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,33 +141,33 @@ int main() {
141141

142142
Node *head = nullptr;
143143

144-
cout << "Inserindo no final os elementos [1, 2, 3]:" << endl;
144+
cout << "Inserting the elements at the end [1, 2, 3]:" << endl;
145145
push_back(&head, 1);
146146
push_back(&head, 2);
147147
push_back(&head, 3);
148148
print_list(head);
149149

150-
cout << "Inserindo no inicio os elementos [0, -1, -2]:" << endl;
150+
cout << "Inserting the elements at the beginning [0, -1, -2]:" << endl;
151151
push_front(&head, 0);
152152
push_front(&head, -1);
153153
push_front(&head, -2);
154154
print_list(head);
155155

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;
157157
insert_in_position(&head, 997, 3);
158158
insert_in_position(&head, 998, 4);
159159
insert_in_position(&head, 999, 5);
160160
print_list(head);
161161

162-
cout << "Removendo ultimo elemento:" << endl;
162+
cout << "Removing last element:" << endl;
163163
pop_back(&head);
164164
print_list(head);
165165

166-
cout << "Removendo primeiro elemento:" << endl;
166+
cout << "Removing first element:" << endl;
167167
pop_front(&head);
168168
print_list(head);
169169

170-
cout << "Removendo elemento na posicao 2:" << endl;
170+
cout << "Removing element in position 2:" << endl;
171171
remove_from_position(&head, 2);
172172
print_list(head);
173173
}

0 commit comments

Comments
 (0)