Original Post
My book says you can convert the result of an malloc call (void *) to any type of pointer... i got a (struct lista *) pointer and i can''t seem to do that...
it tells me
C:\Program Files\Microsoft Visual Studio\MyProjects\addnode\main.cpp(26) : error C2440: ''='' : cannot convert from ''void *'' to ''struct lista *''
Conversion from ''void*'' to pointer to non-''void'' requires an explicit cast
Error executing cl.exe.
addnode.exe - 1 error(s), 0 warning(s)
can anybody help me?