Thread: how to convert from solar calendar to lunar calendar??

  1. #1
    Registered User
    Join Date
    Sep 2006
    Posts
    52

    how to convert from solar calendar to lunar calendar??

    Please tell me some ideas to convert from solar calendar to lunar calendar...If you can, please share me codes to do that...Thanks very much....

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Well I'd start with a search engine to see what the algorithms were.
    Then I'd go and implement them.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    May 2003
    Posts
    1,619
    The fact that there are many lunar calendars (e.g. the Chinese lunar calendar, the Mayan lunar calendar, the Islamic lunar calendar, the Hebrew lunar calendar...), so it's not like anyone could help at all unless you were more specific.

    For that matter there is more than one solar calendar, too, but I assume you mean the Gregorian calendar.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    52
    oh,sorry...I mean I want to convert from solar to lunar in chinese calendar..Anyone can help me??thanks very much...

  5. #5
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Take Salem's suggestion. google("convert from solar to lunar in chinese calendar") might help.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    52
    sorry..I look up on google,but I don't have any informations about this program by C++/C..Please help me...

  7. #7
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Programming is about problem solving. C++ is a tool for solving problems. You need to implement a solution to the problem in C++. The techniques for solving the problem have been provided to you.

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    > Programming is about problem solving
    Absolutely!

    > but I don't have any informations about this program by C++/C
    Gee, just a few clicks and then this
    http://www.math.nus.edu.sg/aslaksen/.../chinese.shtml

    As Tonto said, sometimes you actually have to work at solving problems rather than hoping to find someone to spoon-feed you the answer, or otherwise find a ready-made answer on the web.

    If you ever hope to be in the position to create these primary implementations rather than just having the google / nagging skills to get others to find them for you, then you need to start paying attention.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Convert Char to Int Function
    By drdroid in forum C++ Programming
    Replies: 9
    Last Post: 02-19-2003, 12:53 PM