login
May 02, 2024, 05:11:02 am

Author Topic: My C# Program :)  (Read 818 times)

0 Members and 1 Guest are viewing this topic.

MaDKilleR

  • Vice Underdog
  • Crazy Man
  • *
  • Posts: 1518
  • Country: ca
  • Hi.
    • View Profile
    • MaDKiLLeR's Site
My C# Program :)
« on: June 11, 2012, 05:52:28 pm »
Started C# yesterday, i've written a calculator in C#, please have a look:

http://www.mediafire.com/?vn7mxkb833pmotd

or

http://hamzausmani.webatu.com/Files/CalculatorFinal.rar

Please let me know about your views  :)
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

- [VU]MaDKiLLeR

Thijn

  • Forum Administrator
  • Crazy Man
  • *
  • *
  • *
  • Posts: 2946
  • Country: nl
    • View Profile
Re: My C# Program :)
« Reply #1 on: June 11, 2012, 07:39:45 pm »
Always simple to start with. Found a bug though. If you start it, or clear everything, and press 1 then do = it keeps adding 1. I didn't pressed +, so give me an error :P
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

I'm not totally useless,
I can be used as an bad example ;)

"Never do Today, What you can do Tomorrow"


Skirmant

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 681
  • Country: il
  • Ignorance is bliss.
    • View Profile
Re: My C# Program :)
« Reply #2 on: June 11, 2012, 09:01:35 pm »
Seems like quite a sprint for someone that started learning just a day ago.
Were you familiar with any other scripting/programming languages when you started?
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

"C++ is a horrible language" - Linus Torvalds, creator of Linux

Quote
<SLC> nope. changed my mind. squirrel still sux dix
<SLC> it's just a piece of sh!t
* SLC has quit (Connection closed)

Nadeem

  • Crazy Man
  • *****
  • Posts: 642
  • Country: pk
    • View Profile
Re: My C# Program :)
« Reply #3 on: June 12, 2012, 01:39:01 am »
well good for starting.

TrollCake

  • Fanatic
  • ****
  • Posts: 166
  • Loyalty to ULK for ever.
    • View Profile
Re: My C# Program :)
« Reply #4 on: June 12, 2012, 03:28:44 am »
Wow nice.
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor



MaDKilleR

  • Vice Underdog
  • Crazy Man
  • *
  • Posts: 1518
  • Country: ca
  • Hi.
    • View Profile
    • MaDKiLLeR's Site
Re: My C# Program :)
« Reply #5 on: June 12, 2012, 05:58:58 am »
Seems like quite a sprint for someone that started learning just a day ago.
Were you familiar with any other scripting/programming languages when you started?
Yes i was. Some functions of Squirrel helped me like i used for the Equal to Button:
Code: [Select]
private void CmdEqualto_Click(object sender, EventArgs e)
        {
            Num2 = double.Parse(ResultBox.Text);
            OperationDetected = true;

            switch (operation)
            {
                case "+":
                    Result = Num1 + Num2;
                    ResultBox.Text = Result.ToString();
                    break;
                case "-":
                    Result = Num1 - Num2;
                    ResultBox.Text = Result.ToString();
                    break;
                case "/":
                    Result = Num1 / Num2;
                    ResultBox.Text = Result.ToString();
                    break;
                case "*":
                    Result = Num1 * Num2;
                    ResultBox.Text = Result.ToString();
                    break;
            }
        }
« Last Edit: June 12, 2012, 07:55:48 am by MaDKilleR »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

- [VU]MaDKiLLeR

GranDoIz

  • Crazy Man
  • *****
  • Posts: 690
  • Country: mz
  • Palestine Will Be Free (°_°) Freedom
    • View Profile
Re: My C# Program :)
« Reply #6 on: June 12, 2012, 07:29:23 am »
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor


Skirmant

  • Vice Underdog
  • Crazy Man
  • *
  • *
  • Posts: 681
  • Country: il
  • Ignorance is bliss.
    • View Profile
Re: My C# Program :)
« Reply #7 on: June 12, 2012, 08:58:41 am »
Ah. Very nice :P
Agree Disagree Funny Winner Pwnt Informative Friendly Useful Optimistic Artistic Late Brain Donor

"C++ is a horrible language" - Linus Torvalds, creator of Linux

Quote
<SLC> nope. changed my mind. squirrel still sux dix
<SLC> it's just a piece of sh!t
* SLC has quit (Connection closed)