10 2010 档案
摘要:XPath 是一门在 XML 文档中查找信息的语言。XPath 用于在 XML 文档中通过元素和属性进行导航。什么是 XPath?XPath 使用路径表达式在 XML 文档中进行导航XPath 包含一个标准函数库XPath 是 XSLT 中的主要元素XPath 是一个 W3C 标准XPath 路径表达式XPath 使用路径表达式来选取 XML 文档中的节点或者节点集。这些路径表达式和我们在常规的电...
阅读全文
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading;namespace SingletonDemo{ public sealed class Singleton { private Singleton() { } private static...
阅读全文
摘要:每种类型,无论是内置类型还是类类型,都对该类型对象的一组(可能为空的)操作的含义进行了定义.比如,我们可以将两个int值相加,运行vector对象的size操作,等等.这些操作定义了用给定类型的对象可以完成什么任务.复制构造函数,赋值操作符和析构函数总称为复制控制(copy control).编译器自动实现这些操作,但类也可以定义自己的版本.复制构造函数: 直接初始化 和 复制初始化.string...
阅读全文
摘要:算术转换(arithmetic conversion) 整型提升(integral promotion)指针转换转换为bool类型转换与枚举类型转换为const对象显式转换satic_cast, dynamic_cast, const_cast 和 reinterpreter_caststatic_cast:编译器隐式执行的任何类型转换都可以由static_cast显式完成.当需要将一个较大的算术...
阅读全文
摘要:模板形参不必全都是类型. 在调用函数时非类型形参将用值代替,值的类型在模板形参表中指定.e.g.:
阅读全文
摘要:指向常量的指针 和 常量指针在下面的声明中,圆括号是必不可少的:int *ip[4]; // array of pointers to intint (*ip)[4]; // pointer to an array of 4ints
阅读全文
摘要:int (*)[NUM] 与 int *[NUM] 区别:数组指针,指针数组前一个的本质是指针,后一个的本质是数组。 int (*w)[TEAM_NUM] =(int (*)[TEAM_NUM] ) w1;
阅读全文
摘要:Viewing Text FilesYou can easily view files by using command-line tools ,including cat,less,head,and tail.The simplest command for dealing with text files is cat.e.g.:cat mytextfiletail mytextfile ( v...
阅读全文
摘要:Most versions of Linux have two types of user accounts: standard and root.The root user can access and /or delete whatever files it wants.It can configure hardware,change settings, and so on.Ububntu i...
阅读全文
摘要:打开gVim,进入“编辑”-“启动设定”在“behave mswin”下行位置添加 set nobackup 语句退出并保存配置文件 :wq
阅读全文
摘要:说明:Monaco字体,苹果出品,传说中最好的编程字体。英文大小写,数字,标点等宽,一中文字相当于两英文字符。http://ishare.iask.sina.com.cn/f/4944524.htmlGVim下载地址:http://www.vim.org/download.php#pcManaco字体下载地址其它编程字体参考:http://www.javaeye.com/news/11102-10...
阅读全文
摘要:Application->Accessories->Terminalspark@spark-desktop:~$~ means: /home/spark$ menas: normal users (# means root)hundreds of commands can be used in linux, only 10 to 20 command are usually used ...
阅读全文
摘要:http://www.pidgin.im/download/ubuntu/IM all your friends in one placePidgin is an easy to use and free chat client used by millions. Connect to AIM, MSN, Yahoo, and more chat networks all at once.Supp...
阅读全文
摘要:部分摘自:http://student.csdn.net/space.php?uid=42425&do=blog&id=8663
阅读全文
摘要:用sql profiler 监视运行的sql语句如下:
阅读全文
摘要:来源:http://weblogs.asp.net/scottgu/archive/2007/05/19/using-linq-to-sql-part-1.aspxOver the last few months I wrote a series of blog posts that covered some ofthe new language features that are coming ...
阅读全文
摘要:static void Main() { string strcon = global::TestLinqToSQL.Properties.Settings.Default.testConnectionString; SqlConnection conn = new SqlConnection(strcon); ...
阅读全文
摘要:nothing in the world is impossible if you set your mind to do it 有志者事竟成 never put off till tomorrow what you can do today 今日事,今日毕 the early bird catches the worm 早到的鸟儿有虫吃 it's better than never 有总...
阅读全文
摘要:USE [test] GO /****** Object: Table [dbo].[T_Student] Script Date: 10/12/2010 19:28:09 ******/ /****** Sqlserver 2008 *********/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [...
阅读全文
摘要:Women !What can you say ?Who made 'em ?God must have beena fuckin' genius.The hair --They say the hairis everything, you know.Have you ever buried your nosein a mountain of curls...and just wantedto g...
阅读全文
摘要:In romantic relationships, as with so much else, it’s the little things that count. Just as a mis-spoken word or odd look can throw a couple into a weeks-long feud, small and seemingly insignifi...
阅读全文
摘要:http://weblogs.asp.net/scottgu/
阅读全文
摘要:string centense = "a,b,c,d,e,f,,g"; string [] names=centense.Split(','); string res= names.Aggregate((s1, s2) => s2 + "," + s1); Console.WriteLine(res)...
阅读全文
摘要:
阅读全文
摘要:这些是 SQL-92 设置语句,使 SQL Server 2000/2005 遵从 SQL-92 规则。当 SET QUOTED_IDENTIFIER 为 ON 时,标识符可以由双引号分隔,而文字必须由单引号分隔。当 SET QUOTED_IDENTIFIER 为 OFF 时,标识符不可加引号,且必须符合所有 Transact-SQL 标识符规则。SQL-92 标准要求在对空值进行等于 (=) 或...
阅读全文
摘要:Microsoft is touting LINQ as a ‘‘groundbreaking innovation’’ that promises to ‘‘revolutionize the waydevelopers work with data.’’ Like you, I was somewh...
阅读全文
摘要:字母古希腊语名称英语名称古希腊语发音现代希腊语发音ΑαάλφαAlpha[a],[aː][a]ΒββήταBeta[b][v]ΓγγάμμαGamma[g]/i/,/e/前为[ʝ],其馀为[ɣ]Δδ&delt...
阅读全文
摘要:Stage 1:IISCan enable ASP.NET in one of two managed pipelinemodes: a. In ISAPI mode, also called Classic mode, ASP.NETis invoked through an ISAPI extension (aspnet_isapi.dll), associated with particu...
阅读全文
摘要:TestWebServiceInvoke ////////////////////////////////////// using System; using System.Collections.Generic; using System.Linq; using Syst...
阅读全文
摘要:http://weblogs.asp.net/scottgu/archive/2006/10/22/Tip_2F00_Trick_3A00_-Cool-UI-Templating-Technique-to-use-with-ASP.NET-AJAX-for-non_2D00_UpdatePanel-scenarios.aspxScriptManager调用WebService.示例
阅读全文
摘要:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--usingSystem.Web;usingSystem.Web.Mvc;usingSystem.IO;namespaceMvcApp1.ActionFilters{publicclassSimpleA...
阅读全文
摘要:http://haacked.com/archive/2008/03/13/url-routing-debugger.aspx#related-resultsTo use this, simply download the following zip file and place the assembly inside of it into your bin folder. Then in you...
阅读全文