摘要: Normal 0 7.8 磅 0 2 false false false EN-US ZH-CN X-NONE MicrosoftInternetExplorer4 ... 阅读全文
posted @ 2011-08-09 17:45 静默虚空 阅读(1267) 评论(0) 推荐(2)
摘要: 1. 以二进制方式读写结构体struct Student{ string name; string sex; int age;}void write(string filePath, const struct Student* stu, int n){ FILE *fp; int i; if((fp=fopen(filePath,"wb"))==NULL) { printf("cant open the file"); return; } for(i=0;i<n;i++) { if(fwrite(&stu[i],sizeof(struct 阅读全文
posted @ 2011-08-09 17:28 静默虚空 阅读(567) 评论(1) 推荐(0)
摘要: 高级控件1. TreeView//1.1 添加节点TreeNode tn1 = treeView1.Nodes.Add("名称");TreeNode tn2 = treeView1.Nodes.Add("类别");TreeNode subA_tn1 = new TreeNode("A");TreeNode subB_tn1 = new TreeNode("B");TreeNode subC_tn1 = new TreeNode("C");tn1.Nodes.Add(subA_tn1);tn1.N 阅读全文
posted @ 2011-08-09 14:48 静默虚空 阅读(279) 评论(0) 推荐(0)
摘要: private void ExcelOperation(){ // //定义一个缺少的object对象 object oMis = System.Reflection.Missing.Value; // //定义一个Excel程序对象 Excel.ApplicationClass excelApp = new Microsoft.Office.Interop.Excel.ApplicationClass(); // //由Execl程序创建一个工作薄对象 Excel.Workbook excelWorkBook = excelApp.Workbooks.Add(Excel.XlWBATempl 阅读全文
posted @ 2011-08-09 11:36 静默虚空 阅读(2247) 评论(0) 推荐(0)