Afficher un tableau avec ‘copy()’

Author:

 iterator
Download

#include 
#include 
#include 

using namespace std;

int main( )
{
    int num_costs = 4;
    double cost[4] = { 8.88, 6.77, 9.22, 4.11 };

	// Afficher le tableau
   copy( cost, cost + num_costs,ostream_iterator( cout, " " ) );
     cout<( cout, " " ) );
    cout<( cout, " " ) );
    cout<
    

Leave a Reply

Your email address will not be published. Required fields are marked *