Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


C# Zodiac Signs

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
goldengold
Grandmaster Cheater Supreme
Reputation: -1

Joined: 11 Nov 2006
Posts: 1841
Location: -.-

PostPosted: Sun Nov 14, 2010 5:19 am    Post subject: C# Zodiac Signs Reply with quote

I want to make a simple console app where you type your date of birth and it will tell you your zodiac sign.

This will be the first program i ever try to make so ill need a lot of help. I've read books and watched some tutorials but people say the best way to learn programming is to go ahead and start on a project thats simple.

So can anyone give me any tips on how i would start this application?

_________________
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sun Nov 14, 2010 9:36 am    Post subject: Reply with quote

The first step in any program is to figure out HOW you want to do something, the ideas and not the actual programming. I guess to go about this I would keep two parallel arrays, one with ranges of dates in order and another with the signs that these ranges represent.

So you would need a method that takes the input and finds out which range in array 1 it falls in. Then that position in array 2 is the sign.

_________________
Back to top
View user's profile Send private message
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Sun Nov 14, 2010 5:16 pm    Post subject: Reply with quote

Also keep in mind certain dates within the Zodiac are on the cusp and are associated with more than 1 sign.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
Back to top
View user's profile Send private message
HomerSexual
Grandmaster Cheater Supreme
Reputation: 5

Joined: 03 Feb 2007
Posts: 1657

PostPosted: Sun Nov 14, 2010 9:41 pm    Post subject: Reply with quote

In that case just use a linear search to find all of the ranges that it falls into (inclusive to catch the edges) and return all of the positions. Then, you have all of your signs
_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites