Click here to Skip to main content
15,877,280 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questioncode in MFC Pin
followait10-Jun-08 3:12
followait10-Jun-08 3:12 
AnswerRe: code in MFC Pin
toxcct10-Jun-08 3:17
toxcct10-Jun-08 3:17 
AnswerRe: code in MFC Pin
David Crow10-Jun-08 3:19
David Crow10-Jun-08 3:19 
AnswerRe: code in MFC Pin
Mark Salsbery10-Jun-08 6:04
Mark Salsbery10-Jun-08 6:04 
AnswerRe: code in MFC Pin
Joe Woodbury10-Jun-08 6:04
professionalJoe Woodbury10-Jun-08 6:04 
AnswerRe: code in MFC Pin
sudhir_Kumar10-Jun-08 20:06
sudhir_Kumar10-Jun-08 20:06 
QuestionHow can find Feburary is Leap year or not? Pin
Le@rner10-Jun-08 2:52
Le@rner10-Jun-08 2:52 
AnswerRe: How can find Feburary is Leap year or not? PinPopular
CPallini10-Jun-08 3:04
mveCPallini10-Jun-08 3:04 
Well it is simple:
bool isLeapYear(int year )
{
  return  year % 400 ? year % 100 ? year % 4 ? false : true : false : true;
}

Wink | ;)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke


GeneralRe: How can find Feburary is Leap year or not? Pin
Jijo.Raj10-Jun-08 4:34
Jijo.Raj10-Jun-08 4:34 
GeneralRe: How can find Feburary is Leap year or not? Pin
CPallini10-Jun-08 4:54
mveCPallini10-Jun-08 4:54 
GeneralRe: How can find Feburary is Leap year or not? Pin
toxcct10-Jun-08 6:00
toxcct10-Jun-08 6:00 
GeneralRe: How can find Feburary is Leap year or not? Pin
CPallini10-Jun-08 6:58
mveCPallini10-Jun-08 6:58 
GeneralRe: How can find Feburary is Leap year or not? Pin
toxcct10-Jun-08 21:25
toxcct10-Jun-08 21:25 
GeneralRe: How can find Feburary is Leap year or not? Pin
CPallini10-Jun-08 21:30
mveCPallini10-Jun-08 21:30 
GeneralRe: How can find Feburary is Leap year or not? Pin
toxcct10-Jun-08 21:42
toxcct10-Jun-08 21:42 
GeneralRe: How can find Feburary is Leap year or not? Pin
CPallini10-Jun-08 22:05
mveCPallini10-Jun-08 22:05 
GeneralRe: How can find Feburary is Leap year or not? Pin
Cedric Moonen10-Jun-08 4:39
Cedric Moonen10-Jun-08 4:39 
GeneralRe: How can find Feburary is Leap year or not? Pin
CPallini10-Jun-08 4:53
mveCPallini10-Jun-08 4:53 
GeneralRe: How can find Feburary is Leap year or not? Pin
bulg10-Jun-08 8:43
bulg10-Jun-08 8:43 
GeneralRe: How can find Feburary is Leap year or not? Pin
CPallini10-Jun-08 8:50
mveCPallini10-Jun-08 8:50 
AnswerRe: How can find Feburary is Leap year or not? Pin
Jijo.Raj10-Jun-08 3:08
Jijo.Raj10-Jun-08 3:08 
GeneralRe: How can find Feburary is Leap year or not? Pin
Jijo.Raj10-Jun-08 6:42
Jijo.Raj10-Jun-08 6:42 
GeneralRe: How can find Feburary is Leap year or not? Pin
CPallini10-Jun-08 7:04
mveCPallini10-Jun-08 7:04 
GeneralRe: How can find Feburary is Leap year or not? Pin
Jijo.Raj10-Jun-08 7:17
Jijo.Raj10-Jun-08 7:17 
GeneralRe: How can find Feburary is Leap year or not? Pin
CPallini10-Jun-08 8:26
mveCPallini10-Jun-08 8:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.