With this code:



#include <iostream>
using namespace std;

Display::Display(int N)
{
(N<1 || N%2==0) ? dim=5 : dim=N;