>>370
#include <stdio.h>
#define COL_NORM (0)
#define COL_BLUE (1)
#define COL_RED (2)

static bool isCat( int year )
{
if( ! ( year % 400 ) )
return true;
if( ! ( year % 100 ) )
return false;
if( ! ( year % 4 ) )
return true;
return false;
}
static void color( int col )
{
// エスケープシーケンスがDOS窓では機能しないので殺してる
#if 0
switch( col ) {
case COL_RED: printf("\033[31m"); return;
case COL_BLUE: printf("\033[34m"); return;
default: printf("\033[0m"); return;
}
#endif
}
続く