摘要: 1、bit An integer data type that can take a value of 1, 0, or NULL. 字符串值true和false可转换为bit值,true为1,false为0。 非0数值转换为1。2、tinyint, smallint, int, bigint Exact-numeric data types that use integer data.tinyint, smallint, int, bigint数据类型范围存储tinyint0到2551字节smallint-2^15(-32,768)到2^15-1(32,767)2字节int-2^31...阅读全文
posted @ 2012-05-09 20:43 拈花 阅读(8) 评论(0) 编辑
摘要: 今天看到个例子,描述的是值类型和引用类型的差别,代码如下:using System;namespace StringDemo{ class Program { static void Main(string[] args) { int a, b; a = 12; b = a; //打印a和b Console.WriteLine("改变前:{0}——{1}", a, b); a = 11; //只改变...阅读全文
posted @ 2012-03-07 13:14 拈花 阅读(37) 评论(0) 编辑
摘要: 1.背景: 话说唐僧师徒4人前往西天取经,行于一山中,恰逢清晨,日出而林霏开,云归而岩穴暝,风景怡人,好不悠哉。2.解读: 确保取经人物主体不变:唐僧、悟空、八戒、沙僧;主要事务:取经(当然还会有打妖怪、化斋……)3.常规实现: 代码及执行结果如下:using System;namespace XiYouJi{ class Program { static void Main(string[] args) { Person TangSeng = new 唐僧(); Person WuKong = new ...阅读全文
posted @ 2012-03-04 16:48 拈花 阅读(13) 评论(0) 编辑
摘要: 机器配置: 品牌:联想G460 内存:2G CPU:i3 370 显卡:512M独显(N卡) 硬盘:5400转,500G,忘记什么牌子了运行环境:win7、win8双系统体验一:任务栏 左边开始按钮没有了,但功能区还在,用于切换WinForm桌面与应用列表 右边的显示桌面按钮也没了,但功能尚在,不影响操作;不过右下角还会关联一个侧边栏,如果没用过win7,还真不知道有这功能体验二:文件删除 删除文件时不再提示用户确认,直接就扔回收站了,这感觉让人有点发毛体验三:Metro应用 在传统桌面与Metro之间切换时,会出现花屏,而且Metro运行也不是很流畅,会有卡钝;另外那个QQ...阅读全文
posted @ 2012-03-03 09:25 拈花 阅读(25) 评论(0) 编辑
摘要: .386 .model flat,stdcall option casemap:noneinclude D:\masm32\include\windows.incinclude D:\masm32\include\user32.incincludelib D:\masm32\lib\user32.libinclude D:\masm32\include\kernel32.incincludelib D:\masm32\lib\kernel32.lib .dataszCaption db '提示',0szText db 'H...阅读全文
posted @ 2012-02-25 15:10 拈花 阅读(22) 评论(0) 编辑
摘要: for(int i=0;i<N;i++){ 用Google搜索资料时页面无法显示,这个有木有? 随后Google主页也无法显示了,这个有木有? 过几分钟又恢复正常了,这个有木有? 继续搜索,又无法显示了,这个有木有?}蛋疼了木?解决方案关键字:https,有图有真相阅读全文
posted @ 2012-02-21 09:29 拈花 阅读(24) 评论(0) 编辑
摘要: 由于公司有个基于VB6.0的老项目,今天特意学习了VB6.0连接SQL Server 2000数据库Dim conn As New ADODB.ConnectionDim rs As New ADODB.RecordsetDim strSQL As StringSet conn = New ADODB.Connectionconn.ConnectionString = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=test;Data Source=.&阅读全文
posted @ 2012-01-11 16:24 拈花 阅读(85) 评论(0) 编辑