Jump to content

  •  

  • iBotModz CBox


    dschu012

    Member Since 19 Mar 2008
    Offline Last Active Sep 25 2009 10:43 PM
    -----

    Posts I've Made

    In Topic: (VB.NET & C#) Executing A File

    16 May 2009 - 08:42 AM

    You can also run the process with arguments if acceptable.

    Example:
    Process.Start("firefox.exe","-url www.ibotmodz.net");

    In Topic: [REQUEST]Factorial Calculator?

    15 May 2009 - 10:37 AM

    Factorial should be pretty easy since you only need a number as an input

    http://www.megaupload.com/?d=4YNY16JU

    Here is an example of a factorial calculator. If the answer is above 18446744073709552000 it won't work because that is the maximum size of a ulong. So as long as you use it to calculate the factorials of numbers below 60ish you should be good.

    In Topic: (C#) Linear Searching

    12 May 2009 - 12:11 PM

    A recursive function is a function that calls itself.

    Example:
    //C++ Returns the Greatest Common Denominator
    int gcd(int x, int y)
    {
      if (y == 0)
    	 return x;
      else
    	 return gcd(y, x % y); //calls itself
    }

    What you posted is a linear search

    In Topic: (C#) Loops

    12 May 2009 - 12:00 PM

    While is in there, look further down.

    I mean a "do while" loop.

    int i = 0;
    
    do
    {
    i++;
    }while(i < 10);

    That example really doesn't prove to be helpful. But it can be very helpful whenever you need to do something atleast once, then repeat the action based on the results.

    In Topic: (C#) Loops

    11 May 2009 - 09:56 PM

    Should just be called a for loop not "for next". While your at it why not cover do while (they can be helpful) and foreach.