I am new to C ++ programming and am having trouble trying to define a pointer to a list. This is the code I'm trying to use:
list<int>* pl;
Error:
/home/julian/Proyectos Code::Blocks/pruebas/main.cpp|17|error: expected type-specifier before 'list'|
Is it possible to define a pointer to a list? I need to have a function that returns a pointer to a list.
Many thanks
source share