上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 82 下一页
摘要: using System;using System.Collections;public class Person{ public Person(string fName, string lName) { this.firstName = fName; this.lastName = lName; } public string firstName; public string lastName;... 阅读全文
posted @ 2010-04-12 12:00 greencolor 阅读(281) 评论(0) 推荐(0) 编辑
摘要: srand ( time (NULL) ); // (re)initialize random number generatorint value = rand()%3; // Generate random number between 0 and 2 阅读全文
posted @ 2010-04-07 23:29 greencolor 阅读(155) 评论(0) 推荐(0) 编辑
摘要: srand ( time (NULL) ); // Initialize random generator value = rand()%MAX_RANGE+1; // Get random between 1 and MAX_RANGE 阅读全文
posted @ 2010-04-07 23:06 greencolor 阅读(398) 评论(0) 推荐(0) 编辑
摘要: string output;int selection = 5;// Generate the output stringoutput = string.Format("You selected item {0} from the list.", selection);Console.WriteLine(output); // Outputs "You selected item 5 from t... 阅读全文
posted @ 2010-04-06 00:09 greencolor 阅读(181) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, EventArgs e) { textBox1.Text = WindowsApplication17.Resource1.String1; textBox2.Text = WindowsApplication17.Properties.Resources.String1; } 阅读全文
posted @ 2010-04-05 22:12 greencolor 阅读(139) 评论(0) 推荐(0) 编辑
摘要: The following command, with no options specified, displays the command syntax and options for Resgen.exe.The following command reads the name/value pairs in myResources.txt and writes a binary resourc... 阅读全文
posted @ 2010-04-05 20:58 greencolor 阅读(277) 评论(0) 推荐(0) 编辑
摘要: protected void Application_Error(object sender, EventArgs e){ Application["error"] = Server.GetLastError().Message; this.Response.Redirect("error.aspx");} 阅读全文
posted @ 2010-04-03 14:47 greencolor 阅读(144) 评论(0) 推荐(0) 编辑
摘要: connstring = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.Web.HttpContext.Current.Server.MapPath("~/App_Data/dat.mdb"); 阅读全文
posted @ 2010-04-01 12:10 greencolor 阅读(99) 评论(0) 推荐(0) 编辑
摘要: <appSettings><add key="SQLConnString" value="Data Source=.;Initial Catalog=Attendance;uid=sa;pwd=sa"/></appSettings> 阅读全文
posted @ 2010-04-01 10:44 greencolor 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 右键点击数据库名 > 选任务 >选导出数据 > 出现窗囗后选 下一步 > 选新建 > 输入数据库名 > 确定 > 下一步 > 下一步 > 全选 > 下一步 > 完成关闭SQL server,到MSSQL\Data下拷出 .mdf .ldf 文件 阅读全文
posted @ 2010-03-30 23:46 greencolor 阅读(122) 评论(0) 推荐(0) 编辑
上一页 1 ··· 62 63 64 65 66 67 68 69 70 ··· 82 下一页