Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÐÂÊÖÓÃC#дÁËÒ»¸ö²úÉú²»Í¬Ëæ»úÊýµÄ´úÂë

public int[] Ran()
        {
            int[] a=new int[5];           
            Random ran = new Random();
            for(int i=0;i <5;i++)
            { 
                a[i]=ran.Next(10);
                a=aa(a, i, ran);
            }
            return a;
           
        }

public int[] aa(int[] a, int i,Random ran)
        {
            for (int j = i - 1; j >= 0; j--)
                if (a[j] == a[i]) {a[i] = ran.Next(10); aa(a,i,ran);}
            return a;
        }
ÓÐʲô²»ºÃµÄµØ·½Çë´ó¼ÒÖ¸³ö£¬Ð»Ð»£¡
Random ran = new Random();
Õâ¾ä²»ÒªÐ´ÔÚÀïÃæÒªÐ´ÔÚÍâÃæ

´ø²ÎÊýµÄ·½·¨£¡ Ëæ»úµÄpublic int[] Ran(Random ran )


ÒýÓÃ
´ø²ÎÊýµÄ·½·¨£¡ Ëæ»úµÄpublic int[] Ran(Random ran )


ÇëÎʶÔÏó¶¨ÒåÔÚ·½·¨ÍâÃæ ÕâÑù±È½ÏºÃÂ𣿣¿£¿£¿

ÊÇÈç¹û°Ñ
Random r


Ïà¹ØÎÊ´ð£º

½ØÈ¡WINfromÖÐHTMLµÄ±êÇ©£¡£¡£¡ - .NET¼¼Êõ / C#

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using Syst ......

C#ºÍÊý¾Ý¿âSQL - MS-SQL Server / »ù´¡Àà

ÎÒÃÇC#×öÒ»¸ö´°Ìå ÍùÊý¾Ý¿âÀï²åÈëÊý¾Ý
  SqlConnection cn = new SqlConnection("Data Source=20090713-1752\\SQLEXPRESS;Initial Catalog=goods;Integrated Security=True");
  ......

ajax¶ÁÈ¡ashxÊä³öµÄjsonÊý¾Ý±¨´í - .NET¼¼Êõ / C#

ÎÒÓÃjqueryÎÞË¢ÐÂÉÏ´«Í¼Æ¬ºó·µ»Øjson¸ñʽµÄÊý¾Ý±¨´í
£¨Êµ¼ÊÉÏͼƬÊÇÉÏ´«³É¹¦µÄÁË£¬Ö»ÊÇ·µ»Øjson¸ñʽ×ܶÁ²»µ½£¬×ÜÊDZ¨´í£©
ÎÒµ÷ÊÔÉÏ´«µÄashxÒ³ÈçÏÂ
ÎÞ·¨ÏÔʾ XML Ò³¡£ 
ʹÓà Ñùʽ±íÎÞ·¨²é¿´ XML ÊäÈë¡£Çë¸ü ......

SQL SERVER 2005 ²»ÔÊÐíÔ¶³ÌÁ¬½Ó - .NET¼¼Êõ / C#

ÔÚ½¨Á¢Óë·þÎñÆ÷µÄÁ¬½Óʱ³ö´í¡£ÔÚÁ¬½Óµ½ SQL Server 2005 ʱ£¬ÔÚĬÈϵÄÉèÖÃÏ SQL Server ²»ÔÊÐí½øÐÐÔ¶³ÌÁ¬½Ó¿ÉÄܻᵼÖ´Ëʧ°Ü¡£ (provider: ÃüÃû¹ÜµÀÌṩ³ÌÐò, error: 40 - ÎÞ·¨´ò¿ªµ½ SQL Server µÄÁ¬½Ó) 
Ð ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ