Exemple #1
0
void print_row(const Seq& row)
{
   set_output_precision(row[0]);
   for(unsigned i = 0; i < row.size(); ++i)
   {
      if(i)
         std::cout << ", ";
      std::cout << row[i];
   }
   std::cout << std::endl;
}
Exemple #2
0
void print_row(const Seq& row, std::ostream& os = std::cout)
{
   set_output_precision(row[0]);
   for(unsigned i = 0; i < row.size(); ++i)
   {
      if(i)
         os << ", ";
      os << row[i];
   }
   os << std::endl;
}