954,492 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Calculating Zodiac Sign using DoB

Does anyone know a source code for calculating Zodiac Sign using a given DoB

Thanks

Traicey
Posting Whiz in Training
283 posts since Mar 2008
Reputation Points: 26
Solved Threads: 19
 

yeah, about 12 'if / else if" conditional statements.

jephthah
Posting Maven
2,587 posts since Feb 2008
Reputation Points: 2,143
Solved Threads: 179
 

250 posts, and you're still cross-posting
http://www.daniweb.com/forums/thread195793.html

Yes I have the answer, and no you're not getting it.

Salem
Posting Sage
Team Colleague
11,531 posts since Dec 2005
Reputation Points: 5,862
Solved Threads: 953
 

Wow !!! asking source code in Dani directly and that too at two places. I am SHOCKED !!!

csurfer
Posting Pro
568 posts since Jan 2009
Reputation Points: 485
Solved Threads: 88
 

here, i'll help you get started:

if (month == 4 && day > 20 || month == 5 && day < 21)
    strcpy(sign,"taurus");
else if (month == 5 && day > 20 || month == 6 && day < 21)
    strcpy(sign,"gemini");
// ... etcetera ...


now don't say no one never gave you nothin'

:P

jephthah
Posting Maven
2,587 posts since Feb 2008
Reputation Points: 2,143
Solved Threads: 179
 

DOB? That and most PiHKAL's will land you a long prison sentence.

(This is why you should specify, and not use weird acronyms as questions. As well: http://catb.org/esr/faqs/smart-questions.html#before )

MosaicFuneral
Posting Virtuoso
1,691 posts since Nov 2008
Reputation Points: 888
Solved Threads: 116
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You