function i4vec_print_select ( n, a, select_num, select, title )

%*****************************************************************************80
%
%% I4VEC_PRINT_SELECT prints selected elements of an I4VEC.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    09 July 2017
%
%  Author:
%
%    John Burkardt
%
%  Parameters:
%
%    Input, integer N, the number of components of the vector.
%
%    Input, integer A(N), the vector to be printed.
%
%    Input, integer SELECT_NUM, the number of selected elements.
%
%    Input, integer SELECT(SELECT_NUM), the indices of the vector to be printed.
%
%    Input, string TITLE, a title.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '  Selected vector printout:\n' );
  if ( 0 < length ( title ) )
    fprintf ( 1, '\n' );
    fprintf ( 1, '%s\n', title );
  end
  fprintf ( 1, '\n' );

  for i = 1 : select_num
    fprintf ( 1, '  %6d: %6d  %10d\n', i, select(i), a(select(i)) );
  end

  return
end
