How might we use it?
bool find(InSeq& s, int x)
{
while (s.avail()) {
if (s.next() == x)
return true;
}
return false;
}
Previous slide
Next slide
Back to first slide
View graphic version