A
A
Alexander2019-04-11 02:20:55
C++ / C#
Alexander, 2019-04-11 02:20:55

How to fix error in c++ code?

The error occurs when executing the code on line 36.
5cae7993d3b28904640438.png
Error:
5cae799baa0ce031100739.png
Please help me fix it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2019-04-11
@Romaniich

Replace with . Because malloc will not call you the std::string constructor inside data_list. And do not paste the code with pictures. head = malloc(sizeof(struct Node))head = new Node

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question