#define tanggal_H
#include "stdio.h"
#include "math.h"
/*selektor get*/
typestruct
int DD;/*hari*/
int MM;/*bulan*/
int YY;/*tahun*/
} TANGGAL;
/*selektor set*/
/*KAMUS LOKAL*/
/*ALGORITMA*/
Day(*T) = newDay;
}
void SetMonth(TANGGAL *T, int newMonth)
/*KAMUS LOKAL*/
/*ALGORITMA*/
Month(*T) = newMonth;
/*KAMUS LOKAL*/
/*ALGORITMA*/
Year(T) = newYear;
/*KAMUS LOKAL*/
/*ALGORITMA*/
return false;
if (Y > 0)
switch (M)
1:{
if (0<D<32)
{return true;}
2:{
if (0<D<30)
{return true;}
else
if (0<D<29)
{return true;}
3:{
if (0<D<32)
{return true;}
4:{
if(0<D<31)
{return true;}
5:{
if (0<D<32)
{return true;}
6:{
if(0<D<31)
{return true;}
7:{
if (0<D<32)
{return true;}
8:{
if(0<D<32)
{return true;}
9:{
if (0<D<31)
{return true;}
10:{
if(0<D<32)
{return true;}
11:{
if(0<D<31)
{return true;}
12:{
if (0<D<32)
{return true;}
/*KAMUS LOKAL*/
TANGGAL T;
/*ALGORITMA*/
Day(T) = h;
Month(T) = b;
Year(T) = t;
return(T);