How to linked list take a array for input???

int arr[] = {1,2,3,4,5,6,7,8,9};  // array of numbers
list numberList(arr, arr + sizeof(arr) / sizeof(int))  load array into list with constructor
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.