摘要:
Append()用法Class Preson{private string firstName;private string middletName;private string lastName; //定义3个私有变量 firstName middleName lastNamePublic Preson(string fn,string mn,string ln) //构造函数{firstName=fn;middleName=mn;lastName=ln;}public void displayFull Name() //定义一个方法名{StringBuilder FullName =new 阅读全文
摘要:
<html> <head> <title>blog</title> <FCK:meta http-equiv=content-type content="text/html; charset=gb2312" /> <style> body{ border:0px; margin:0px; overflow:hidden; background-color:transparent; font-family:宋体; } .page{ position:absolute; width:700px; borde 阅读全文
摘要:
我们在做excel资料的时候,通常有以下方法。一.导入导出excel常用方法:1.用查询表的方式查询并show在数据集控件上。代码 public static string strCon = " Provider = Microsoft.Jet.OLEDB.4.0 ; Data Source =C:\\08.xls;Extended Properties=Excel 8.0"; public static DataSet ds; protected void Page_Load(object sender, EventArgs e) {OleDbConnection con 阅读全文
摘要:
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>JS实现图片翻书效果-懒人图库</title><META http-equiv=imagetoolbar content=no><STYLE type=text/css>#center {LEFT: 50 阅读全文
摘要:
添加引用:Microsoft Excel 11.0 Object Library ;添加:using Microsoft.Office.Interop.Excel;★打开Excel文件============================ Microsoft.Office.Interop.Excel.Application excel1 = new Microsoft.Office.Interop.Excel.Application(); Workbook workbook1 = excel1.Workbooks.Open(@"E:\aaa.xls", Type.Miss 阅读全文
摘要:
冒泡排序(BubbleSort)的基本概念是:依次比较相邻的两个数,将小数放在前面,大数放在后面。即首先比较第1个和第2个数,将小数放前,大数放后。然后比较第2个数和第3个数,将小数放前,大数放后,如此继续,直至比较最后两个数,将小数放前,大数放后。重复以上过程,仍从第一对数开始比较(因为可能由于第2个数和第3个数的交换,使得第1个数不再小于第2个数),将小数放前,大数放后,一直比较到最大数前的一对相邻数,将小数放前,大数放后,第二趟结束,在倒数第二个数中得到一个新的最大数。如此下去,直至最终完成排序。 由于在排序过程中总是小数往前放,大数往后放,相当于气泡往上升,所以称作冒泡排序。 用二重循 阅读全文
摘要:
先去下载一个 暴风影音2007 然后坐下冲杯咖啡,慢慢来在C#应用程序中嵌入暴风影音播放器步骤1、建立新项目步骤2、在项目中导入暴风影音中的mps.dll,(“Com组件”中名为“StormPlayer Object”)工具箱里就出现了名为“StormPlayer Object”的组件,直接拖到窗体上就可以用了。步骤3、 设置窗体FormBorderStyle为None; 设置axStormPlayer1.controlBarVisible=0; 设置axStormPlayer1.infoBarVisible=0; 设置axStormPlayer1.titleVisible=0; 设置axSt 阅读全文