Time of Update: 2014-07-14
標籤:style blog http color 使用 檔案 在實際項目應用中會偶爾使用檔案的壓縮上傳以及伺服器端的加壓處理,故寫此文記錄以備不時之需.1.自己編寫的ZipHelper類. 1 public static class ZipHelper 2 { 3
Time of Update: 2014-07-14
標籤:winform 檔案 os art for io 擷取檔案名稱方法:用System.IO.Path.GetFileName和System.IO.Path.GetFileNameWithoutExtension(無副檔名)的方法擷取檔案路徑方法://擷取當前進程的完整路徑,包含檔案名稱(進程
Time of Update: 2014-07-14
標籤:style 使用 width div c ar 運算子大致分為如下3類:一元運算子,處理一個操作符二元運算子,處理兩個運算元三元運算子,處理三個運算元 大多數運算子都是二元運算子,只有幾個一元運算子和一個三元運算子,即條件運算子(條件運算子是一個邏輯運算子)。下面先介紹數學運算子,它包括
Time of Update: 2014-07-13
標籤:c 字串 C 輸入一串數字,去掉其中含7的和能被7整除的數,每個數小於10000,數字個數小於100輸入例子:1,7,56,77,87,2,45,42,97,9977輸出:1,2,45注意:輸入個數不確定,所以不能夠用整形數組處理,不能以判斷整形數組元素是否等於\n為結束,因為數組是整形的,\n是字元型的,是輸入不進去的
Time of Update: 2014-07-13
標籤:c 指標 記憶體 第六章 指標這一章,就明顯觸痛初學者敏感之處了。我也是在一段時間不用C以後就會對這一部分生疏,好吧,其實是對進階指標那塊生疏。當然這一部分總有很多借鑒之處,比如數組範圍的問題等,要不我也不會大夏天的這麼虐自己看這種書。總結:指標變數的值並非它所指向的記憶體位置所儲存的值,而是儲存了指向的變數的地址。需要通過間接訪問符*來訪問指向的變數的
Time of Update: 2014-07-13
標籤:algorithm c 演算法 連通 最近在看《Algorithms IN
Time of Update: 2014-07-13
標籤:使用 os for 代碼 工作 c++ C#中定義數組--字串及數組操作 一、一維: int[] numbers = new int[]{1,2,3,4,5,6}; //不定長 int[] numbers = new int[3]{1,
Time of Update: 2014-07-14
標籤:style blog http color os art C#MD5加密1、應用命名空間using System.Security.Cryptography;View Code2.添加方法 private string GetMD5(string str) {
Time of Update: 2014-07-12
標籤:c 鏈表 動態鏈表的建立,輸出,刪除,插入#include<stdio.h>#include<malloc.h>#include<stdlib.h>#define NULL 0#define LEN sizeof(struct student)struct student{ long num; float
Time of Update: 2014-07-13
標籤:style blog http java color 檔案 初學c#,由於項目需要操作Excel。網上搜尋了一番,資料挺多。不過寫的過於冗餘,一上來就是一大斷代碼,看的頭疼,總結了下,不足的忘補充考慮到相容問題,針對office2003的操作---必須的庫
Time of Update: 2014-07-13
標籤:des style blog color 使用 os using System;//這個是使用DES的基礎using System.Security.Cryptography;//這個是處理文字編碼的前提using
Time of Update: 2014-07-13
標籤:winform style color os width art 建立一個WinForm程式,拖一個TabControl(在tabPages屬性裡面將預設的兩個TabPage刪除)和三個Button(增加、刪除、修改) public partial class
Time of Update: 2014-07-13
標籤:blog http 使用 2014 問題 代碼 剛才發生了一個非常有意思的事情。同事問我 為什麼在一個程式集裡,沒辦法引用另一個類。我看了下代碼
Time of Update: 2014-07-13
標籤:style blog http color strong 2014 抽象原廠模式比原廠模式具有更高層次的抽象性。當要返回一系列相關類中的某一個,而每個類都能根據需要返回不同的對象時,可以選擇這種模式。直接進入樣本。樣本描述:完成花園的規劃,多種花園種類,每個裡面多種植物 編寫一個基類
Time of Update: 2014-07-13
標籤:style blog http color 檔案 os c#程式打包現在分為兩種,一種是VS內建的打包方式,還有一種是第三方的打包方式,在VS2013裡面是沒有內建打包安裝部署的,只有第三方的建立。第三方打包方式很簡單,百度Installshield下載下來,安裝好直接運行,簡單容易懂直接
Time of Update: 2014-07-13
標籤:style blog http color strong 資料 轉載自:http://www.cnblogs.com/davyjiang/articles/1337400.html一些 IL 語言解釋:跳轉指令集合Beq 如果兩個值相等,則將控制轉移到目標指令。Beq_S
Time of Update: 2014-07-13
標籤:style blog color div new re 1.cs部分添加隱藏樣式IntegratedEquipmentblock.Style.Add("display", "none"); 2.gridview添加奇偶行樣式protected void
Time of Update: 2014-07-14
標籤:des style blog color 使用 strong null 指標和傳參問題1) 段錯誤。形參改為二級指標即可void GetMemory( char *p ){ p = (char *) malloc( 100 );}void Test( void ){char *str =
Time of Update: 2014-07-12
標籤:style blog color 檔案 資料 os 先讀取Excel檔案並存到dataset 1 public DataSet ExcelToDataTable(string filename, string strsheetname) 2 { 3
Time of Update: 2014-07-12
標籤:style blog color 使用 資料 問題 如本文時間 23:05由於實際裝置使用網路傳輸轉虛擬串口模式,現場安裝之後還是出了問題。從20:30研究到23:30才終於弄明白 //開啟新的序列埠串連 sp.Open();