2 Replies - 4665 Views - Last Post: 28 February 2006 - 04:46 PM Rate Topic: -----

#1 duygugvn  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 36
  • Joined: 31-October 05

calender

Posted 28 February 2006 - 02:03 PM

I did not visit your page because you did not give me answer I know you are very busy and you have scoll or job. but I waited your answer 4-5days. as a result ı failed my course:(...


thennnn..
I turned backkk:) with my questionsss
I try to write calender program in C.bur there are some rules .I HAVE TO ENTER TWO DATE and program will calculate the how many days between these two date.butt condition is first date must before than the second date.so I did not provide this conditionnn....

Is This A Good Question/Topic? 0
  • +

Replies To: calender

#2 fyrestorm  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 10
  • View blog
  • Posts: 3,113
  • Joined: 04-April 02

Re: calender

Posted 28 February 2006 - 02:23 PM

the point of this website is not to do peoples homework for them, but to help them with whatever questions that they have...

feel free to post some of your code and the problems that you're having with it and we'll be happy to assist you :)
Was This Post Helpful? 0
  • +
  • -

#3 duygugvn  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 36
  • Joined: 31-October 05

Re: calender

Posted 28 February 2006 - 04:46 PM

okey I write this part of my code to condition date1 is always earlier than date 2 which are entered from the user....
but I make a puzzle by using if else.. :huh:



if (year1<year2)
{ printf("give another year number which is greater than the next");}
else
{return date;}
if ((year1==year2)&&(month1<month2)){{ return date;}
if(month1>month2)
{printf("give another month number which is greater than the next");}else if((month1==month2)&&(day2>day1))
return date;}
else if(day2<=day1)
{printf("give another day number which is greater than the next");}}

yes that 's it
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1