Time of Update: 2015-09-11
標籤:using MySql.Data.MySqlClient;using System;using System.Collections.Generic;using System.Data;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Xml.Linq;namespace XML{ class Program { static void
Time of Update: 2015-09-17
標籤:基於.net的應用中,不會用到unix時間戳記,當.net應用與其它應用(eg: php, java)互動時,就會用到unix時間戳記。在項目中曾經用到過一次,使用者通過web
Time of Update: 2015-09-17
標籤:usingSystem;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Person { private string
Time of Update: 2015-09-17
標籤:增加一行: DataTable measurements = new DataTable(); measurements.Columns.Add("StationTestName", typeof(string)); measurements.Columns.Add("SerialNumber", typeof(string));
Time of Update: 2015-09-10
標籤:核心資訊:請求網址:
Time of Update: 2015-09-16
標籤: 作為C#的程式員來說,在遇到線程同步的需求時最常用的就是lock關鍵字。但如何正確並有效地使用lock,卻是能否高效地達到同步要求的關鍵。正因為如此,程式員需要完全理解lock究竟為程式做了什麼。 所涉及的知識點• lock的等效代碼• System.Threading.Monitor類型的作用和使用方法 分析問題1.lock的等效代碼 在.NET的多線程程式中,經常會遇到lock關鍵字來控制同步,比如下列代碼:private object o = new
Time of Update: 2015-09-07
標籤:1、Asp.net中建立Microsoft.Office.Interop.Word.Application時出現 “ 拒絕訪問 ” 錯誤 項目中要實現在伺服器端開啟一個Word模版檔案,修改其內容後再下載到用戶端使用,在Asp.net頁面中建立Microsoft.Office.Interop.Word.Application對象時出現“拒絕訪問”的錯誤,提示資訊如下: 拒絕訪問。 說明: 執行當前 Web
Time of Update: 2015-09-13
標籤:switch是一個控制語句,用於選擇一個要執行的語句塊。 一個switch語句包括一個或多個執行的語句塊。每個語句塊包括一個或多個case標籤,case後接要執行的語句。 如下面的代碼 Codeint parms=1; switch (parms) { case 0: case 1: Console.WriteLine("Case 0 or 1"); break;
Time of Update: 2015-09-01
標籤:/// <summary> /// Cookies賦值 /// </summary> /// <param name="strName">主鍵</param> /// <param name="strValue">索引值</param> /// <param name="strDay">有效天數</param>
Time of Update: 2015-09-06
標籤:C# 基礎介面篇 一、多態複習 使用個new來實現,使用virtual與override --》new隱藏父類方法 根據當前類型,電泳對應的方法(成員) --》override重寫 無論什麼情況,都是執行新的方法(成員) 繼承是實現多態的一個前提,沒有繼承多態是不能實現的 父類與子類實現多態 抽象類別與子類實現 抽象類別不能執行個體化 抽象類別中的抽象方法沒有方法體
Time of Update: 2015-08-31
標籤:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 反轉字串{ class Program { static void Main(string[] args) { string ss = Reserver("abcdefg");
Time of Update: 2015-09-04
標籤:最近用戶端又出了奇葩事情:http://q.cnblogs.com/q/43038/
Time of Update: 2015-09-04
標籤: class Program { static void Main(string[] args) { //串連資料庫 using (MySqlConnection conn = new MySqlConnection("Server=127.0.0.1;Database=study;uid=root;pwd=root;Charset=utf8")) //建立Mysql對象
Time of Update: 2015-09-05
標籤: class Program { static void Main(string[] args) { DataTable dt = new DataTable(); using( MySqlConnection conn = new MySqlConnection("Server=localhost; Database=study; uid=root; pwd=root; Charset=utf8") )
Time of Update: 2015-09-17
標籤:編譯器 基礎知識 二進位 十進位 小數點 譚浩強的書,今天看到56頁了,之前的幾天通過其他途徑學習過這些基礎知識,這次算是溫習了下吧,一些常量變數的知識,常量包括: 1,整型常量,就是一般的整數吧。 2,實型常量,又分為兩種十進位小數形式,由數字和小數點組成,如1.453
Time of Update: 2015-09-15
標籤:參考《C Primmer Plus》 首先嘮嘮C語言關鍵字: 資料類型14個: void, char(1位元組), int(4位元組), short(2位元組), long(4位元組), signed(4位元組), unsigned(4位元組),
Time of Update: 2015-09-12
標籤:在函數調用前的準備工作就是把相關參數壓入棧,如果參數的尺寸是原子單位(32位的系統為32為,64位的系統為64位),但如果傳入一個結構體,尺寸大於原子單位,那麼就不是一個push指令就能搞定,這時候堆棧的空間還是會被佔用,編譯器會把結構體的值傳入(拷貝)進開闢的堆棧空間,這就能明白為什麼參數傳遞,在參數的品質大於原子單位的時候最好使用指標。如果不使用指標,那麼堆棧的消耗會很嚴重,如果函數調用深度和頻度增加,Stack Overflow是遲早的事。C的參數傳遞
Time of Update: 2015-08-31
標籤:編程題#1:單詞翻轉來源: POJ (Coursera聲明:在POJ上完成的習題將不會計入Coursera的最後成績。)注意: 總時間限制: 1000ms 記憶體限制: 65536kB描述輸入一個句子(一行),將句子中的每一個單詞翻轉後輸出。輸入只有一行,為一個字串,不超過500個字元。單詞之間以空格隔開。輸出翻轉每一個單詞後的字串,單詞之間的空格需與原文一致 範例輸入hello world範例輸出olleh dlrow#include<iostream>#
Time of Update: 2015-08-31
標籤:Limak is an old brown bear. He often plays poker with his friends. Today they went to a casino. There are n players (including Limak himself) and right now all of them have bids on the table. i-th of them has bid with
Time of Update: 2015-08-31
標籤:1046 A^B Mod C基準時間限制:1 秒 空間限制:131072 KB 分值: 0 難度:基礎題 收藏 關注給出3個正整數A B C,求A^B Mod C。例如,3 5 8,3^5 Mod 8 =