Thank you to all :)
I've found the error.
I should have used
head->docNum = new NodeSmall;
NodeSmall *docNum = new NodeSmall;
Hello, I want to make a linked list program consisting of one main link, and each main links have sub link like
Main 1 -> Main 2 -> Main 3 ->...
Hello everyone. I can be considered as as a newbie. I am studying computer sciences in university. I am taking c++ and mysql courses right now.
Separate names with a comma.