codice:
 
#include <ctype.h>
/// prog

int Menu()

{ //VISUALIZZA IL MENU PRINCIPALE

 char a;

  do

  {

    cout <<"WELCOME TO DAYLOG"<<'\n';

    cout << "MENU PRINCIPALE, SCEGLI UN'OPZIONE" << '\n';

    cout << "1 - Aggiugi dati"<<'\n';

    cout << "2 - Guarda dati"<<'\n';

    cout << "3 - Ricerca dati"<<'\n';

    cout << "0 - esci"<<'\n';

    cin>>a;
    if( !isalnum(a) )
      exit(1);

  }

  while ( a < 0 || a > 3 );

  return a;

}