Link to home
Start Free TrialLog in
Avatar of knightofdawn
knightofdawn

asked on

Does not have an entry point

I'm hitting error of "<dir exe> does not have an entry point" when build my code can anyone take a look and solve the error. I Also any suggestion to with my current code to make it more short and efficient. I'm quite new in C#.
ZodiacSign.cs.txt
ASKER CERTIFIED SOLUTION
Avatar of BalkisBr
BalkisBr

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BalkisBr
BalkisBr

Just to practice, You can try to use the
- switch statement (sample)  ... and
- Enumerators to Month and ZodiacSign

let me know if you need any help

            switch (MonthOfBirth)
            {
                case "Jan":
                    if (DayOfBirth < 20)
                        ZodiacSign = "CAPRICORN";
                    else ZodiacSign = "AQUARIUS";
                    break;
                case "Feb":
                    if (DayOfBirth < 20)
                        ZodiacSign = "AQUARIUS";
                    else ZodiacSign = "PISCES";
                    break;
                default:
                    ZodiacSign = "We are not able to find any match";
                    break;
            }
            return ZodiacSign;

Open in new window

Avatar of knightofdawn

ASKER

The codes works fine now but when the *.exe is executed after I input day the programs terminate. How could I verify the output?
You can put a ReadLine, so the program will wait for you to press the "Enter" key
//place this code in the end of your main function
Console.ReadLine();

Open in new window