Hello, I'm getting an error that I don't know what to do about.
Here's is my code:
1 2 3 4 5 6 7 8 9 10 11 12
list<string>::iterator Siter = first.begin(); //Siter is the iterator and is first set at the front
//of the first list
for(;;) //Empty for loop
{
if((*Siter) == "Linky") //If the iterator equals Linky
{
>>LINE 94 foundChar = Siter.itS(i); //foundChar is equal to the position in the list where
break; //Linky was found, then end the for loop.
}
else
i++; //else, increment i
}
Here's the error:
linknapped.cpp: In function 'long unsigned int search(std::list<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > >&, std::list<char, std::allocator<char> >&, std::list<int, std::allocator<int> >&, std::list<long unsigned int, std::allocator<long unsigned int> >&)':
linknapped.cpp:94: error: 'struct std::_List_iterator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >' has no member named 'itS'
Any help is greatly appreciated. itS is the iterator for the string list in int main().