Beispiel #1
0
void show_sequence(sequence display)
// Library facilities used: iostream
{
    for (display.start( ); display.is_item( ); display.advance( ))
        cout << display.current( ) << endl;
}
void show_list(sequence<T> src)
{
   for ( src.start(); src.is_item(); src.advance() )
      cout << src.current() << "  ";
}
Beispiel #3
0
void show_sequence(sequence src)
{
   for ( src.start(); src.is_item(); src.advance() )
      cout << src.current() << endl;
}