vector< Bus >::iterrator it; do { <Ввод Id>; for( it = b.begin(); it != b.end(); ++it ) if( *it.getId == <переменная с введенным Id> ) break; } while( it != b.end() );