fix: synatx changes

This commit is contained in:
Tishasoumya-02
2021-09-07 12:51:09 +05:30
parent 57c474a573
commit f44daaa526

View File

@@ -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);