lotter boy wrote:
> sir i m a new student of it i need some help in C++ i cannt uder stand plzz
> solve thjse question
> #include<iostream>
> using namespace std;
> void main()
> {
> int x,year,month,day,arry={31,28,31,30,31,30,31,31,30,31,30,31};
> cout<<"please enter the year";
> cin>>year;
> cout<<"please enter the month";
> cin>>month;
> cout<<"please enter the day";
> cin>>day;
> if(year%400==0)
> {
> x=1;
> }
> for (int i=0;i<month-1<<i++);
> {
> if(x==1&&i==1)
> {
> result=result+arry[i]+1;
> }
> else
> {
> result=result+arry[i];
> }
> {
> result=result+date;
> {
> cout<<day;
> }
> }
<snip>
Don't hijack threads. What questions?
2008
April
20
--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197
*NEW* MyTaskFocus 1.1
Get on task. Stay on task.
http://www.CubicleSoft.com/MyTaskFocus/