19 April, 2012

Calculate the distance between any two dates


PHP Code:
/ / Calculating the distance between two dates of male bat ki # include using namespace std 


ngaythang struct 
    
unsigned int right 
    
unsigned int month 
    
unsigned int nam 
}; 
void main () 

    
ngaythang NT1 NT2 
    
cout << " Please enter the dates of the first year: " 
    
cin >> NT1 Now >> NT1 month >> NT1 men 
    
cout << "Please enter the dates of the second year:" 
    
cin >> NT2 Now > > NT2 month >> NT2 men 
   
    
unsigned int count1 count2 count 

    
unsigned int 






                

&&  == ( NT2 months ) &&   == ( NT2 male ))
                    break;
            }
            if ( 
== ( NT2 right ) &&  == ( NT2 months ) &&   == ( NT2 male ) )
                    break;
        }
        if ( 
== ( NT2 right ) &&  == ( NT2 months )  








            








    

    
from " << NT1 day << "/" << NT1 month << "/" << NT1 men << "=>" << NT2 day << "/" << NT2 scales < < "/" << NT2 men << "is:" << count << "right" ; } 


No comments:

Post a Comment

Thanks