I have just started learning about Linked list using C++. I am trying to create a linked list using a vector. Why is the problem with this code?

前端 未结 0 692
一生所求
一生所求 2021-02-07 13:14
#include
using namespace std;
class node{
public:
    int data;
    node* next;
    
// Constructor
node(int d){
    data = d;
    next = NULL;
}
};         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题