C#ÃüÁîÐвÎÊýÎÊÌâ
public class Functions
{
public static long Factorial(int n)
{
if (n < 0) { return -1; } //error result - undefined
if (n > 256) { return -2; } //error result - input is too big
if (n == 0) { return 1; }
// Calculate the factorial iteratively rather than recursively:
long tempResult = 1;
for (int i = 1; i <= n; i++)
{
tempResult *= i;
}
return tempResult;
}
}
class MainClass
{
static int Main(string[] args)
{
// Test if input arguments were supplied:
if (args.Length == 0)
{
System.Console.WriteLine("Please enter a numeric argument.");
System.Console.WriteLine("Usage: Factorial <num>");
return 1;
}
&
Ïà¹ØÎÊ´ð£º
£¨1£©string ConnString = "server=localhost;integrated security=sspi;database=pubs;";
£¨2£©string strConnection="user uid=sa;pwd=123456;Database=test;Server=test;Connect ......
ÈçÌ⣬ÎÒÏëͨ¹ýoracleµÄÒ»¸ö´æ´¢¹ý³Ì·µ»ØÒ»¸öDATASET£¬¿ÉÊÇÔõôҲʵÏÖ²»ÁË£¬ÔÚÍøÉÏ¿´ÄÇЩ˵½¨°ü¿ÉÎÒŪ²»ºÃ£¬ÅªÁ˺ü¸ÌìÍ·´óÁË£¬ËÓпÉÒԳɹ¦Ö´ÐеĴúÂë¿ÉÒÔ·¢Ò»¶Î¸øÎÒ£¬»òÕßÖ¸µãÏ´ó¸ÅÔõôŪ£¬ÍøÉÏ¿½±´µÄ±ðÀ´¡£ÏÈлР......
ÓÉÓÚÒ»¾Éϵͳ£¨C#,asp.net 1.1£©Òª×·¼Ó»úÄÜ£¬Òò´ËҪѧϰ£¬Äܲ»ÄÜÍÆ¼öһЩ½Ì²Ä¡£²»Òª³¬¹ýÈý±¾Ñ½£¡
ÊDz»ÊÇ1.1 ºÍ 2.0 µÈ±ä»¯Í¦´óµÄ¡£Ê¹ÓÃ2.0µÄ½Ì²Ä¿ÉÒÔÂð?
лл£¡
ÍÆ¼öÃÏÀÏ´óµÄ¡¶ASP.N ......
string ConStr = "provider=Microsoft.jet.oledb.4.0;data source=" + Application.StartupPath + @"\MYText.mdb";
OleDbConnection Olecon = ne ......
ÎÒÖ´ÐÐÒ»¸öinsertºóÂíÉÏÖ´ÐÐÒ»¸öselect£¬·¢¾õÊý¾Ý»¹Ã»¼Ó½øÈ¥£¬Èç¹ûµÈ1£¬2ÃëÔÙselectµÄ»°Êý¾Ý¾ÍÓÐÁË¡£
ÄÇÎÒÓ¦¸ÃʲôʱºòÔÙselectÄØ£¿²»¿ÉÄÜÿ´Î¶¼¼Ó¸ö¶¨Ê±Æ÷À´¸ã°É£¬¶àÂé·³£¿
commit
?????????????
°ÑÄ ......