how can I declare linkedlist (the ready implemented linkedlist in c++)

just include <list> header file. See this link

#include <list>

using std::list

int main()
{
    list<int> MyList;

}

thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.