class Program { public static string[] adjective=new string [8]{"美麗的","高興的","傷心的","失落的","可愛的","調皮的","活波的","笨拙的"}; public static string[] subject=new string [8]{"太陽","花朵","星星","月亮","女孩","小貓","蝴蝶","燕子"}; public static string[]
先看一下這段代碼,使用reflector反編譯過來的public static bool TryParse(string s, out int result){ return Number.TryParseInt32(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result);} 可知TryParse()返回的是一個bool類型,這裡還使用了個out關鍵字。首先解決TryParse()這個問題(1)TryParse(
當運行完插入語句後,執行select @@identity就可得到自動產生的id如果是sql server 最好用select SCOPE_IDENTITY() as id因為@@identity全域的同類還有IDENT_CURRENT(‘table’)IDENT_CURRENT 返回為任何會話和任何範圍中的特定表最後產生的標識值。IDENT_CURRENT 不受範圍和會話的限制,而受限於指定的表。IDENT_CURRENT 返回為任何會話和範圍中的特定表所產生的值。@@IDENTITY
I bought many cards for the new year. And i want to send them to my friends. It's a long time since i wrote a letter to my friends last time.As time passed,many type of communication is developed,etc. QQ,MSN,Email.But we lost the original
Start->All Program ->Microsoft Visual Studio 2008->Visual Studio tools->Visual Studio 2008 Command PrompOpen the command promp ,then we can use csc to build c# files ,and use vbc to build vb files.here are some command i used to build