mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-08 13:06:57 +08:00
fix: synatx changes
This commit is contained in:
@@ -47,15 +47,13 @@ Node *next; ///< pointer to the next value on the list
|
||||
*/
|
||||
class list {
|
||||
private:
|
||||
Node * head; // link before the actual first element
|
||||
Node *head{nullptr}; // link before the actual first element
|
||||
public:
|
||||
/**
|
||||
* List constructor. Initializes the first link.
|
||||
*/
|
||||
list() {
|
||||
// Initialize the first link
|
||||
head = nullptr;
|
||||
|
||||
}
|
||||
|
||||
void insert(int new_elem);
|
||||
|
||||
Reference in New Issue
Block a user