pointers - C++ linked list implementation segmentation fault (core dumped) error -
i trying learn c++ on own , have been going through textbooks , trying problems. while learning pointers, decided try , implement linked list on own. have written program, keep getting error says: "segmentation error (core dumped)". have searched through other similar questions on website , although there lot on same topic, none have helped me fix problem. i'm pretty new programming , pointers, appreciated! #include <iostream> #include <cstdio> #include <cstdlib> using namespace std; struct node { int element; struct node *next; }*start; class pointerlist { public: node* create(int num); void add(int num); int first(); int end(); int retrieve(int pos); int locate(int num); int next(int pos); int previous(int pos); void insert(int pos, int num); void delete(int pos); ...