Mar 18, 2013 at 8:58am
for ( char *s : all_file ) std::cout << s << std::endl;
Or
1 2
|
std::copy( all_file.begin(), all_file.end(),
std::ostream_iterator<char *>( std::cout, "\n" ) );
|
Or
1 2
|
std::for_each( all_file.begin(), all_file_end(),
[]( char *s ) { std::cout << s << std::endl; } );
|
Or
1 2 3 4
|
for ( std::vector<char *>::size_type i = 0; i < all_file.size(); i++ )
{
std:;cout << all_file[i] << std::endl;
}
|
Last edited on Mar 18, 2013 at 9:01am