Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace stringLL
- {
- struct Node
- {
- std::string data;
- Node *next = nullptr;
- };
- struct strLL
- {
- Node *head;
- Node *tail;
- };
- // command functions start below
- void insertFront(strLL &list, std::string data)
- {
- Node *new_node = new Node{data, list.head};
- list.head = new_node;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement