摘要: In this article,I will introduce how to research strings in the vs2010.newLine:'\x000D\n' or '\n'\{\x000D\n\t\t\t\[[a-z,A-Z]+\([a-z,A-Z,.]+\)\]ExpressionSyntaxDescriptionExampleAny character.Matches any single character except a line break.a.o matches "aro" in "around&
阅读全文
摘要: DescriptionThis group exists to support the use of the .NET Power Threading Library produced by Jeffrey Richter/Wintellect.The Library, documentation, sample code, and license agreement can be downloaded from http://Wintellect.com/PowerThreading.aspx.More information about the library's classes
阅读全文
摘要: Scottrade,史考特,开户,教程,说明,详细,购汇,邮寄
阅读全文
摘要: 计算机科学与技术学习心得(收藏)2009-02-14 17:51计算机科学与技术这一门科学深深的吸引着我们这些同学们,上计算机系已经有近三年了,自己也做了一些思考,零零星星的,今天先整理一部分,大家看看有没有用,我一直认为计算机科学与技术这门专业,在本科阶段是不可能切分成计算机科学和计算机技术的,因为计算机科学需要相当多的实践,而实践需要技术;每一个人(包括非计算机专业),掌握简单的计算机技术都很容易(包括程序设计),但计算机专业的优势就在于,我们掌握许多其他专业并不“深究”的东西,例如,算法,体系结构,等等。非计算机专业的人可以很容易地做一个芯片,写一段程序,但他们做不出计算机专业能够做出来
阅读全文
摘要: char *a == char a[] ..但是数组不能被赋值。1,函数定义和声明、调用、参数传递:定义 :函数类型 函数名( 数据类型1 参数1 , 数据类型2 参数2 , … ){ 定义语句(可省略) 执行语句 返回语句(可省略)}2,内联函数、嵌套函数、递归函数:inline 函数类型 函数名(形式参数表){ 函数体;//内联函数一般是比较小的,经常被调用的,大多可在一行内写完的函数。}int p(int a,float b=9.6,char c='A',int d=20); //正确3,带默认形参值的函数、函数重载:4,函数模板:1,函数模板可以用来创建一个通用功能的函
阅读全文
摘要: 输入:读入:a+b,a-b,a/b等,cin>>a>>charOperation>>b>>endl;enum { skipws = 0x0001, //跳过当天及后面所有连续的空白符。 left = 0x0002, right = 0x0004, internal = 0x0008,//在指定的域宽内数值的符号按左对齐、数值本身按右对齐输出。 dec = 0x0010, //10 oct = 0x0020, //8 hex = 0x0040, //16 showbase= 0x0080, //8进制:0、16进制:0x ,10无。 showpoi
阅读全文
摘要: 1,类的声明class 类名{ private: .... protected: .... public: ....}; //结尾处的分号一定不能省略。2,类成员的访问控制:public,protected、private。3,成员函数: a,类中定义的成员函数:放在类中定义的成员函数为内联函数。 b,类后定义的成员函数:内中声明函数原型,类外定义函数体格式。 返回值类型 类名::成员函数(形参表) {函数体}4,对象的定义和引用 对象定义:Rectangle obj1,obj2; 对象的引用:obj1.getArea();注意:C++编译器创建对象时,只为各...
阅读全文
摘要: 一,数组:(a) 一维数组定义,初始化: int a[10]={6,4,3,2,6,7,3,4,6,2,3,4}; char c[]={'a','b','c','d'}; //对全部元素赋值时可以省略数组大小。 int a[10]={1,2,3}; //可以只对数组部分元素初始化。访问数组元素方式:a[9]; //注意数组越界。(b) 二维数组定义,及初始化: int a[2][3]={{1,2,3},{4,5,6}};//分行初始化 int a[2][3]={1,2,3,4,5,6};//...
阅读全文
摘要: 一、作用域与存储类型作用域:1,对主函数来说其他文件中的子函数都是外部函数,所以要对各个子函数进行extern函数声明2,没有使用static的全局变量a 在子文件中可以使用。3,使用了static 存储类型符,即为静态全局变量,具有文件作用域。域运算符 :: int var=10;fun(){ int var; var=::var; //将全局变量赋值给局部变量。}使用方法:1,namespace::subitem;2, using namespace namespace1;3, usign namespace1::subitem;程序文件结构:1,文件包含命令: #incl...
阅读全文
摘要: 正则表达式相关类:Regex结果相关类: MatchCollection例子:static void Main(string[] args){ const string myText = @"This comprehensive compendium provides a broad and through investigation of all aspect of programming with ASP.NET. Entirely revised and updated for the fourth release of .NET, this book will give yo
阅读全文
摘要: 最近在公司进行一个数据库迁移的小项目。在加入这个项目时感觉是很小的项目,应该很简单。但是有很多不熟悉的东西,如Analysis Services和Integration Services。项目名称:Sql Server Database Migration from sql server 2005 to sql server 2008 Sql server 数据库迁移(从Sql server 2005 X64 to Sql server 2008)项目描述:某天Leader 找到我,要我跟一位同事一块做一个Sql server 数据迁移的小项目。项目内容和过程要跟S国的IT维护人员沟通,希..
阅读全文
摘要: 第七章 预算福和类型强制转换7.1 运算符可空类型和运算符?:int? a=null; bool? b=null;空合并运算符(??):第一个操作数必须是可空类型或者引用类型;第二个操作数必须是与第一个操作数的类型相同,或者可以隐式转化为第一个操作数的类型。如果第一个数不是null ,表达式就等于第一个操作数的值。如果第一个数是null,则等于第二个操作数。 int? a=null;int? b=1; int?c=a??b; =>c=1;7.2 类型的安全性1,隐式转化2,显示转换:int 转换为short,会将高位截掉,只剩下低位。101111=》111第八章 委托、Lambda表达式
阅读全文
摘要: 经过一番努力终于从网络上将泄露的数据库数据下载下来了。发现是.sql格式的。自己又写了个成就导入到SQL SERVER中,共有数据:6428632条,这个样本应该是很权威了,呵呵。下面,对数据库中的数据做一点简单的分析:1,密码:我想你们也一样很关心别人使用什么密码,呵呵,人都是有好奇心的,由于数据库已经泄露,黑客们的数据字典中恐怕早就将下面的密码放到字典中了,所以发到网上也没什么危害了,这是数据库中前20使用最多的密码:密码使用次数123456789235025123456782127511111111176346dearbook46055 //奇怪000000003495212312312
阅读全文
摘要: using System;namespace np{class program{ static void Main() { contact c1=new class1(); contact c2=new class2(); c1.printf(); c2.printf(); Console.ReadKey(); }} public abstract class contact{ public virtual void printf() { Console.WriteLine("Th...
阅读全文
摘要: 《李白沽酒》:李白无事街上走,提壶去打酒.遇店加一倍,见花喝一斗.五遇店和花,喝光壶中酒.试问此壶中,原有多少酒?原诗是三遇店和花,这里改成了五次,后面有提示:由于古代没有小数,所以都用整数。假设,壶中酒数都是整数,代码如下:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { ...
阅读全文
摘要: 一、做练习。做练习性项目。看编程书籍。做项目练习。上计算机课程。做练习性项目。读编程类博客。做项目练习。
阅读全文
摘要: 看到有人写得贪吃蛇,所以自己也仿照写了一个,有些代码是copy 的。对比前面人写的代码来说我的很不精简。。仅供娱乐。。。也可以换成黑白模式的。代码
阅读全文
摘要: var open = window.XMLHttpRequest.prototype.open, send = window.XMLHttpRequest.prototype.send, onReadyStateChange; function openReplacement(method, url, async, user, password) { var syncMode = async !== false ? 'async' : 'sync'; alert('Preparing ' +syncMode +' HTTP request
阅读全文
摘要: beforechange: function() { log("About to change"); return true }, beforeopen : function() { log("About to open"); return true }, beforeclose : function() { log("About to close"); return true }, beforemove : function() { log("About to move"); return true }, bef
阅读全文
摘要: 一、用户属性mobile : mobiletelbadpwdcount : 0homephone : hometeluserprincipalname : Jack@m1.cngivenname : 名samaccountname : Jacktitle : 职务cn : Jackwhencreated : 2011/9/23 3:14:18displayname : 显示名称lastlogon : 129615905072762619dscorepropagationdata : 1601/1/1 0:00:00samaccounttype : 805306368countrycode :
阅读全文
摘要: <table id=downloadList border="1" width="100%" onclick="sortTable()"> <tr> <td>AddCommonInfo.mxp</td> <td>MXP File</td> <td>2614</td> <td>2002-12-30 16:45:22,Fri</td> </tr> <tr> <td>addtemplat
阅读全文
摘要: 客户端生成验证代码代码<script type="text/javascript" src="../Scripts/jquery-1.6.2.min.js"></script><script src="/Scripts/jquery.validate.min.js" type="text/javascript"></script><script src="/Scripts/jquery.validate.unobtrusive.min.js"
阅读全文
摘要: “/Date(1232035200000)/”怎么转换成 javascript 的 Date 对象做法:new Date(+/\d+/.exec(value)[1]);value就是json字符串,字符串内容是 /Date(ticks)/,其中 ticks 表示从 epoch (UTC) 开始的毫秒数。因此,UTC 时间 1989 年 11 月 29 日 4:55:30 AM 将编码为“/Date(628318530718)/”。.NET 使用runtime.serialization.json 生成的时间格式为:"/Date(XXXXXXXXX+0800)/"这类.NET
阅读全文
摘要: 1,层效果: 给弹出层添加阴影: .alertdiv { position: absolute; background-color: #f8f8f8; border:1px solid #999999; display:block; filter: progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3); }
阅读全文
摘要: 一、js基础 1,object类 a,js中所有类的基类。 b,属性:Constructor 对创建对象的函数的引用(指针)。A.constructor指向 A();函数 c,属性.Prototype 对该对象原型的引用。 2,String类 二、语法 1,迭代语句:do-while while for for-in(迭代对象属性) 语句。 continue 只退出内部循环一次; break 只打断最内循环; 2,with语句:用于设定代码在特定对象中得作用域 例子:var smessage="hello world"; with...
阅读全文
摘要: 1,sql提示 SQL Prompt2,代码生成工具3,自动化测试工具:Selenium。
阅读全文
摘要: 1,创建委托: private delegate void CustomPropertyLoad1(List<CustomProperty> properties, FlowLayoutPanel container); 2个参数用来传递方法中用到的界面控件。2. Thread LoadCustomPropertyThread; private Thread LoadCustomProperties(List<CustomProperty> properties) { if (properties != null) { var thread = new Thread(n
阅读全文
摘要: 1,Excel数据导入 将Excel作为类似access的数据源 using System.Data.OleDb; using System.IO;OpenFileDialog of = new OpenFileDialog();of.Title = "Excel文件"; of.FileName = ""; of.InitialDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments); of.Filter = "Excel文件(*.xls;*.xls
阅读全文
摘要: HTML标题<h1></h1><p></p>链接:<a href="http://XXXX">xxxx</a>图像:<img src=http://XXXX.jpgwidth="x“ height="y"/>无内容的标签:<br />标签要用小写HTML属性<a href=""> </a>IMG=>map =>area 图像的可点击区域<base href="" /&g
阅读全文
摘要: 示例程序1:program.cs public class Program : FormShellApplication<WorkItem, Form1> { [STAThread] static void Main() { new Program().Run(); } protected override void AfterShellCreated() { base.AfterShellCreated(); this.Shell.IsMdiContainer = true; RootWorkItem.Items.Add(this.Shell, "Shell"
阅读全文
摘要: 1,创建服务契约类 :用接口来实现服务契约 1: using System.ServiceModel; 2: namespace Artech.WcfServices.Contracts 3: { 4: [ServiceContract(Name="CalculatorService", Namespace="http://www.artech.com/")] 5: public interface ICalculator 6: { 7: [OperationContract] 8: double Add(double x, double y); 9:
阅读全文
摘要: 那些最好的程序能够容纳不断变化的需求,当然,要求程序满足所有需求却难如登天。这就是该依赖注入发挥作用的时候了.依赖注入的最终目的是达到松耦合,而松耦合可以让程序在不重新编译的情况下通过配置程序来改变程序的某些部分。下面通过一个Demo来展现Ninject 我们创建一个汽车模拟器程序,所有的汽车都需要燃料,而燃料的种类却多种多样,我们需要告诉这个模拟器使用何种燃料,让我们来做第一次尝试:// Unleaded.cs public class Unleaded { public void Burn() { Console.WriteLine("Unleaded fuel burning&
阅读全文
摘要: Set fs = server.createObject("scripting.filesystemobject") '--假设你想让生成的EXCEL文件做如下的存放 'filename = Server.MapPath("temp/ria.xls") filename = Server.MapPath(Application("DOWNLOADFILEURL") ) & "\DA_BudgetQuery_"& objUser.Account & ".xls&quo
阅读全文
摘要: 1,Html Encoding空格(" "):  <=Non_Breaking Space 不换行空格大于(">"):> <=Great than 大于小于("<"):< <= less than 小于
阅读全文
摘要: 1,ASP获取表单数据: a,接收用get 方法传输的数据的写法(从网址):fname=Request.QueryString("fname") b,表单上的Fname的值,接收用post 方法传输的数据的写法:fname=request.Form("fname") c, 同时接受get和post 方法传送数据的代码写法: dim MUName MUName=Request("MUName")在同时拥有三种情况变量名相同的时候,优先级如下Get > Post > Cookies<input type="ra
阅读全文
摘要: 2011-5-20日:完成上传文件,图片水印,.NET发送邮件2011-5-21日计划:.NET报表制作。。
阅读全文
摘要: C#中用XmlDocument写XMLC#,XML XmlDocument xmldoc = new XmlDocument(); XmlDeclaration xmldecl; xmldecl = xmldoc.CreateXmlDeclaration("1.0", "gb2312", null);////xml版本号,编码(简体中文) xmldoc.AppendChild(xmldecl); //加入一个根元素 XmlElement xmlelem; xmlelem = xmldoc.CreateElement("", "
阅读全文
摘要: /* * 名称: 个人程序 * 版本: V1.0 * 作者: 王海鹏(Jack) * 日期: 2011-05-17 * CLR版本: 4.0 * 命名空间名称: WHPFunction.Drawing * 文件名: AddImageWatermark.cs * *QQ : 383828353 *Email: wh2004_1@qq.com * */using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Drawing;using
阅读全文
摘要: 找到以下路径:64位系统:【安装盘符】:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Windows Forms\2052\Form.zip【安装盘符】:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Web\2052\WebForm.zip32位系统:【安装盘符】:\Program Files\Microsoft Visual Studi
阅读全文
摘要: 1,xtypeuse NorthWindgoselect * from sysobjects where xtype='U'xtype参数的意思C = CHECK 约束D = 默认值或 DEFAULT 约束F = FOREIGN KEY 约束L = 日志FN = 标量函数IF = 内嵌表函数P = 存储过程PK = PRIMARY KEY 约束(类型是 K)RF = 复制筛选存储过程S = 系统表TF = 表函数TR = 触发器U = 用户表UQ = UNIQUE 约束(类型是 K)V = 视图X = 扩展存储过程--删除表SET ANSI_NULLS ONGOSET QUOT
阅读全文