Posted by: rahul80 April 12, 2011
Login in to Rate this Post:
0
?
Try this one buddy
class numDay
{
int hour;int day;
void hour{
if(hour>=8)
{
day++;
cout<<day;
}}
void day
{
if
{
hour=hour-8;
cout<<hour;
hour++;
}}
}
main
{
numday a,numday b;numday c;
c.hour==a.hour-b,hour;
c.day==a.day-b.day;
cout<<c.hour();
cout<<c.day();
end
}