cppman Posted March 20, 2006 Share Posted March 20, 2006 Okay, you know when u go through a tutorial for c++, or take a class... their is usually a little assignment where you have to create a program that you input your birthday and it will give you your zodiac sign... except, it does'nt use any IF STATEMENTS at all... is their any way to do this in autoit? an example? Miva OS Project Link to comment Share on other sites More sharing options...
greenmachine Posted March 20, 2006 Share Posted March 20, 2006 Does it use any conditional statements at all? If not, that's suprising. If so, they're probably switch statements. Link to comment Share on other sites More sharing options...
cppman Posted March 20, 2006 Author Share Posted March 20, 2006 (edited) hm.... guess they were. Edited March 20, 2006 by CHRIS95219 Miva OS Project Link to comment Share on other sites More sharing options...
CyberSlug Posted March 20, 2006 Share Posted March 20, 2006 One possibility.... Input: Birthday. There are 366 possible values (remember leap years) Output: Zodiac. There are 12 possible values. Worst case, you could write a function that maps each possible input to its output. A lookup table, so to speak.... That should be enough of a hint. Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now