i need to find a way to include this C++ code into either javascript or css or html
cin.getline(szIn,256);
CString strIn = szIn;
CString strMonth, strDay, strYear;
int d1= strIn.Find('/');
strMonth=strIn.Left(d1);
int d2= strIn.Find('/',d1+1);
strDay= strIn.Mid(d1+1,d2-d1-1);
int l=strIn.GetLength();
strYear= strIn.Right(l-d2-1);
int m=atoi((LPCTSTR)strMonth);
int d=atoi((LPCTSTR)strDay);
int y=atoi((LPCTSTR)strYear);
if(d1<0 || d2<0 )
{
printf("\nPlease re-enter your information(m/d/y)\n");
return;
}
else
{{
if(d < 1 || d>31)
{
printf("\nIncorrect Day Format\nPlease re-enter your information(m/d/y)\n");
return;
}
else
{
if(m<1 || m>12 )
{
printf("\nIncorrect Month Format\nPlease re-enter your information(m/d/y)\n");
return;
}
else
{
if( y>=100 && y<=1969 || y>=36 && y<=69)
{
printf("\nIncorrect Year Format\nPlease re-enter your information(m/d/y)\n");
return;
}
else
{
if(y>=1970 && y<=2036)
{
CTime BirthDay(y,m,d,12,0,0);
CString date;
date=BirthDay.Format("\nYou were born on %#x \n\n");
cout<<date;
}
else
{
if(y>=70)
{
y+=1900;
CTime BirthDay(y,m,d,12,0,0);
CString date;
date=BirthDay.Format("\nYou were born on %#x \n\n");
cout<<date;
}
else
{
if(y<=38)
{y+=2000;
CTime BirthDay(y,m,d,12,0,0);
CString date;
date=BirthDay.Format("\nYou were born %#x \n\n");
cout<<date;
}
}
}
}
}
}
}
}
CTime Now = CTime::GetCurrentTime();
CTime Birthday(y,m,d,12,0,0);
CTimeSpan life;
life = Now-Birthday;
if(life<0)
{
printf("\nBirthday must be before current date for Lifespan\n");
}
else
{
CString lifetime;
lifetime =life.Format("You have been alive for %D days, %H hours, %M minutes, %S seconds\n");
cout<<lifetime;
cin.getline(szIn,256);
CString strIn = szIn;
CString strMonth, strDay, strYear;
int d1= strIn.Find('/');
strMonth=strIn.Left(d1);
int d2= strIn.Find('/',d1+1);
strDay= strIn.Mid(d1+1,d2-d1-1);
int l=strIn.GetLength();
strYear= strIn.Right(l-d2-1);
int m=atoi((LPCTSTR)strMonth);
int d=atoi((LPCTSTR)strDay);
int y=atoi((LPCTSTR)strYear);
if(d1<0 || d2<0 )
{
printf("\nPlease re-enter your information(m/d/y)\n");
return;
}
else
{{
if(d < 1 || d>31)
{
printf("\nIncorrect Day Format\nPlease re-enter your information(m/d/y)\n");
return;
}
else
{
if(m<1 || m>12 )
{
printf("\nIncorrect Month Format\nPlease re-enter your information(m/d/y)\n");
return;
}
else
{
if( y>=100 && y<=1969 || y>=36 && y<=69)
{
printf("\nIncorrect Year Format\nPlease re-enter your information(m/d/y)\n");
return;
}
else
{
if(y>=1970 && y<=2036)
{
CTime BirthDay(y,m,d,12,0,0);
CString date;
date=BirthDay.Format("\nYou were born on %#x \n\n");
cout<<date;
}
else
{
if(y>=70)
{
y+=1900;
CTime BirthDay(y,m,d,12,0,0);
CString date;
date=BirthDay.Format("\nYou were born on %#x \n\n");
cout<<date;
}
else
{
if(y<=38)
{y+=2000;
CTime BirthDay(y,m,d,12,0,0);
CString date;
date=BirthDay.Format("\nYou were born %#x \n\n");
cout<<date;
}
}
}
}
}
}
}
}
CTime Now = CTime::GetCurrentTime();
CTime Birthday(y,m,d,12,0,0);
CTimeSpan life;
life = Now-Birthday;
if(life<0)
{
printf("\nBirthday must be before current date for Lifespan\n");
}
else
{
CString lifetime;
lifetime =life.Format("You have been alive for %D days, %H hours, %M minutes, %S seconds\n");
cout<<lifetime;