src/fibo.cpp
Fibo::Fibo(int n, const std::string& title)
: _n(n)
, _title(title)
{
  if (_n <= 0)
  {
    std::cout << "Fibonacci class must be initialized with a strict positive integer. N is set to 50." << std::endl;
    _n = 50;
  }
  if (_title.empty())
  {
    _title = "Fibonacci";
  }
}
/**
 * Default constructor of a class which handle Fibonacci integer serie up to n
 * 
 * @param n     Strict Positive Integer
 * @param title Title to be printed
 */
Default constructor of a class which handle Fibonacci integer serie up to n

@param n     Strict Positive Integer
@param title Title to be printed
Default constructor of a class which handle Fibonacci integer serie up to n @param n Strict Positive Integer @param title Title to be printed
Fibo::Fibo(int n, const std::string& title)
: _n(n)
, _title(title)
{
  if (_n <= 0)
  {
    std::cout << "Fibonacci class must be initialized with a strict positive integer. N is set to 50." << std::endl;
    _n = 50;
  }
  if (_title.empty())
  {
    _title = "Fibonacci";
  }
}
Fibo :: Fibo ( int n , const std :: string & title ) : _n ( n ) , _title ( title ) { if ( _n <= 0 ) { std :: cout << " " << std :: endl ; _n = 50 ; } if ( _title . empty ( ) ) { _title = " " ; } }
Default constructor of a class which handle Fibonacci integer serie up to n
Default constructor of a class which handle Fibonacci integer serie up to n