src/fibo.cpp
void Fibo::display(bool showTitle) const
{
  int a = 0;
  int b = 1;
  if (showTitle) std::cout << _title << ": ";
  while (a < _n)
  {
    std::cout << a << " ";
    int aa = a;
    a = b;
    b = aa+b;
  }
  std::cout << std::endl;
}
/**
 * Write the Fibonacci serie to standard output
 *
 * @param showTitle Flag for displaying title
 */
Write the Fibonacci serie to standard output
@param showTitle Flag for displaying title
Write the Fibonacci serie to standard output @param showTitle Flag for displaying title
void Fibo::display(bool showTitle) const
{
  int a = 0;
  int b = 1;
  if (showTitle) std::cout << _title << ": ";
  while (a < _n)
  {
    std::cout << a << " ";
    int aa = a;
    a = b;
    b = aa+b;
  }
  std::cout << std::endl;
}
void Fibo :: display ( bool showTitle ) const { int a = 0 ; int b = 1 ; if ( showTitle ) std :: cout << _title << " " ; while ( a < _n ) { std :: cout << a << " " ; int aa = a ; a = b ; b = aa + b ; } std :: cout << std :: endl ; }
Write the Fibonacci serie to standard output
 @param showTitle Flag for displaying title
Write the Fibonacci serie to standard output @param showTitle Flag for displaying title