随笔 - 741  文章 - 0  评论 - 260  阅读 - 416万
09 2013 档案
是否 whether ,if
摘要:f,whether这两个词都能引出宾语从句,词义是“是否”。if 为口语体。有时两个词可以通用,但是当所引出的从句为介词宾语或不定式短语时,则只能用whetherMy wife wants to know if Mary needs any help.我妻子想知道玛丽是否需要帮忙。He wants to know if you are tired.他想知道你是否累了。下面两句中的whether 都可以用if 代替I wonder whether she will be able to come.我怀疑她是否能来。I don't know whether it's large e 阅读全文
posted @ 2013-09-27 10:04 莫水千流 阅读(416) 评论(1) 推荐(0) 编辑
定语从句:
摘要:定语从句:一:概说 1 定义:在复合句中起定语作用的从句叫做定语从句。 (定语从句一般放在它所修饰的名词或代词——即先行词之后) 2 种类; ⑴限定性定语从句:限定性定语从句对说明句子意义来说必不可少,如果省略句子意思不 完整,有时甚至会被歪曲,限定性定语从句不用“,”和句子的其他部 分隔开。 ⑵非限定性定语从句:非限定性定语从句对说明句子意义来说未必必不可少,如果省略 句子意思仍然完整,非限定性定语从句通常用“,”和句子的其他 ... 阅读全文
posted @ 2013-09-27 09:17 莫水千流 阅读(557) 评论(0) 推荐(0) 编辑
by,with
摘要:一、表示使用有形的工具时,通常用with来表示。例如:用钢笔写 write with a pen用肉眼看 see with naked eyes用锤子敲打 strike with a hammer用秒表计量 measure with a stop watch用空气冷却 cool with air用毛巾擦 rub with towel二、表示采用某种方式或手段时,用by表示。例如:用无线电联系 reach by radio用耳机收听 listen to by earphone用手工制造 make by hand用电话通知 give information by telephone用信通知他 le 阅读全文
posted @ 2013-09-26 12:12 莫水千流 阅读(465) 评论(0) 推荐(0) 编辑
C++中extern “C”含义深层探索
摘要:1.引言 C++语言的创建初衷是“a better C”,但是这并不意味着C++中类似C语言的全局变量和函数所采用的编译和连接方式与C语言完全相同。作为一种欲与C兼容的语言,C++保留了一部分过程式语言的特点(被世人称为“不彻底地面向对象”),因而它可以定义不属于任何类的全局变量和函数。但是,C++毕竟是一种面向对象的程序设计语言,为了支持函数的重载,C++对全局函数的处理方式与C有明显的不同。 2.从标准头文件说起 某企业曾经给出如下的一道面试题: 面试题 为什么标准头文件都有类似以下的结构?#ifndef __INCvxWorksh#define __INCvxWorksh#if... 阅读全文
posted @ 2013-09-20 10:32 莫水千流 阅读(305) 评论(0) 推荐(0) 编辑
安装Office2007时出现1706错误的解决方案
摘要:前几天,重做了系统。周末因为接到一笔单子,很兴奋啊。第一次接到私活。然后就装Office2007,打算看需求的。居然安装的时候出现错误,提示1706错误,后面一串错误信息,也懒得看,以为是文件坏了。今天,到单位。同事发给我一个好的Office安装包,我试了一下,发现还是出现1706错误。那我现在能肯定,是我机器配置的问题了。(在这里说一下,我现在的机器配置是window7旗舰版+vs2008。)在网上搜了一下,看了几篇文章,基本肯定是安装顺序的问题了,因为我以前貌似是先安装Office2007,然后安装VS2008的,反正是没遇到过这个问题。现在知道是这个原因,但是要我先卸载VS2008,然后 阅读全文
posted @ 2013-09-19 20:48 莫水千流 阅读(3289) 评论(0) 推荐(0) 编辑
缩进与对齐——正确地使用Tab和空格
摘要:写代码时大家都会使用缩进(indentation)和对齐(alignment),这是两个相关而又不同的概念,两者都是为了提高代码的可读性。缩进出现在一行的最左边,目的是明显地区分开包含与被包含的代码;对齐则是为了使代码美观、整洁。下例中,类的两个成员变量相对于类名来说具有一级缩进;两个变量的注释部分采用了对齐显示。它使用了Tab(假设一个Tab等于8个空格的大小)来缩进和对齐,一块绿色表示一个Tab。同样的代码,在另一个开发人员的机器上(一个Tab等于4个空格的大小)打开可能就不再对齐:造成这一现象的原因是代码的对齐使用了Tab,而不同编辑器的Tab键大小设置不一样。因此下一个Tab stop 阅读全文
posted @ 2013-09-18 18:55 莫水千流 阅读(1821) 评论(0) 推荐(0) 编辑
SQL PRIMARY KEY,SQL FOREIGN KEY
摘要:A primary key is defined as a column or a group of column that their value are always be unique. Normally, NULL value will never be allowed in this column to be part of this column’s records.EXAMPLE :Let’s say we want to create a table name Users. The PRIMARY KEY will be user_id for that table. SQL 阅读全文
posted @ 2013-09-18 14:48 莫水千流 阅读(1924) 评论(0) 推荐(0) 编辑
SQL HAVING
摘要:The HAVING clause is used in combination with the GROUP BY clause and the SQL aggregate functions. HAVING clause allows us to call the data conditionally on the column that return from using the SQL aggregate functions.The SQL HAVING syntax is simple and looks like this:SELECT [COLUMN NAME 1] , AGG. 阅读全文
posted @ 2013-09-18 14:10 莫水千流 阅读(339) 评论(0) 推荐(0) 编辑
SQL GROUP BY
摘要:ROUP BY clause is used to associate an aggregate function with groups of rows. The SQL GROUP BY clause is used along with the SQL aggregate functions like SUM, COUNT, MAX, MIN, and AVG to provide means of grouping the result by refer to certain database table column.The SQL syntax for GROUP BY ... 阅读全文
posted @ 2013-09-18 14:10 莫水千流 阅读(268) 评论(0) 推荐(0) 编辑
SQL ORDER BY
摘要:After being learn through all the displaying data syntax. It’s time to learn how to sort data by using ORDER BY.Yes it is. ORDER BY clause allows you to sort the records in your result set. This clause can only be used in SELECT statements. The ORDER BY clause sorts the result set based on the colum 阅读全文
posted @ 2013-09-18 14:08 莫水千流 阅读(733) 评论(0) 推荐(0) 编辑
SQL CREATE INDEX
摘要:n relational database, Index will be the important mechanism for boosting performance. Index is important like Index for a book that helps you quickly find the pages that you wanted to read, index on the column speeds data retrieval.CREATE INDEX Statement will look like this:CREATE [UNIQUE] INDEX [I 阅读全文
posted @ 2013-09-18 14:00 莫水千流 阅读(271) 评论(0) 推荐(0) 编辑
SQL Alias
摘要:There are two types of aliases that are used most frequently in SQL command: which is column alias and table alias.Why ALIAS? There is some reasons alias to be use when querying a SQL command.- alias in a long query can make your query easier to read and understand- alias table is use when using a s 阅读全文
posted @ 2013-09-18 13:59 莫水千流 阅读(491) 评论(0) 推荐(0) 编辑
SQL IN
摘要:here are some additional clause in the SQL language that can be used to simplify queries by decrease the use of the single Operator repeatly. One of them is IN clause.IN clause is used to simplify the queries if you want to select data that meet a large number of options. That means IN function help 阅读全文
posted @ 2013-09-18 13:58 莫水千流 阅读(814) 评论(0) 推荐(0) 编辑
sqlite3使用简介
摘要:一.使用流程要使用sqlite,需要从sqlite官网下载到三个文件,分别为sqlite3.lib,sqlite3.dll,sqlite3.h,然后再在自己的工程中配置好头文件和库文件,同时将dll文件放到当前目录下,就完成配置可以使用sqlite了。使用的过程根据使用的函数大致分为如下几个过程:sqlite3_open()sqlite3_prepare()sqlite3_step()sqlite3_column()sqlite3_finalize()sqlite3_close()这几个过程是概念上的说法,而不完全是程序运行的过程,如sqlite3_column()表示的是对查询获得一行里面的 阅读全文
posted @ 2013-09-18 10:09 莫水千流 阅读(490) 评论(0) 推荐(0) 编辑
SQL INTERSECT
摘要:SQL INTERSECT is query that allows you to select related information from 2 tables, this is combine 2 SELECT statement into 1 and display it out.INTERSECT produces rows that appear in both queries.that means INTERSECT command acts as an AND operator (value is selected only if it appears in both stat 阅读全文
posted @ 2013-09-18 09:04 莫水千流 阅读(804) 评论(0) 推荐(0) 编辑
SQL UNION
摘要:QL UNION is query that allows you to select related information from 2 tables, this is combine 2 SELECT statement into 1 and display it out.UNION will only return DISTINCT value only. Which means will eliminate duplicate records that returned.There are some condition that need to meet when using the 阅读全文
posted @ 2013-09-18 09:03 莫水千流 阅读(190) 评论(0) 推荐(0) 编辑
SQL UNION ALL
摘要:QL UNION ALL is query that allows you to select related information from 2 tables, the result is different from the UNION statement. It return all the record from SELECT statement that used.UNION ALL selects all rows from each table and combines them into a single table.The syntax is as follows:SELE 阅读全文
posted @ 2013-09-18 09:03 莫水千流 阅读(222) 评论(0) 推荐(0) 编辑
SQL SELECT INTO
摘要:The SELECT INTO statement is usually used to create backup copies of tables. That also explain that SELECT INTO creates a new table and fills it with data computed by a query.SELECT INTO syntax is:SELECT [COLUMN NAME 1], [COLUMN NAME 2] ,... INTO [BACKUP TABLE NAME] FROM[TABLE NAME] EXAMPLE 1 ... 阅读全文
posted @ 2013-09-18 09:02 莫水千流 阅读(247) 评论(0) 推荐(0) 编辑
SQL INNER JOIN
摘要:A INNER JOIN command is queries that combine data from more than 1 table.For two tables that want to join together need to have some data in common, like unique id that link this 2 tables together. INNER JOIN will need a joining condition or connecting column to display out the joined data. 1 joinin 阅读全文
posted @ 2013-09-18 09:00 莫水千流 阅读(459) 评论(1) 推荐(0) 编辑
SQL JOIN
摘要:A JOIN command is queries that combine data from more than 1 table.For two tables that want to join together need to have some data in common, like unique id that link this 2 tables together. Normal join will need a joining condition or connecting column to display out the joined data. 1 joining con 阅读全文
posted @ 2013-09-18 09:00 莫水千流 阅读(246) 评论(0) 推荐(0) 编辑
SQL OUTER JOIN
摘要:When we want to select out all the record from two table, no matter it's present at second table or not, we will have to use SQL OUTER JOIN command.There are 3 type of OUTER JOIN, which is: LEFT OUTER JOIN RIGHT OUTER JOIN FULL OUTER JOINSQL OUTER JOIN syntax:SELECT * FROM [TABLE 1] OUTE... 阅读全文
posted @ 2013-09-18 08:55 莫水千流 阅读(1311) 评论(1) 推荐(0) 编辑
SQL CROSS JOIN
摘要:最近在讲到T-SQL查询的Join部分时,一下子没有想起来CROSS JOIN的用法,因为其实平常也确实基本不用到。特意找了一个例子,以供参考CROSS JOIN又称为笛卡尔乘积,实际上是把两个表乘起来。以下资料摘自:http://www.sqlguides.com/sql_cross_join.phpSQL CROSS JOIN will return all records where each row from the first table is combined with each row from the second table. Which also mean CROSS JO 阅读全文
posted @ 2013-09-18 08:53 莫水千流 阅读(1028) 评论(0) 推荐(0) 编辑
SQL 基础:Select语句,各种join,union用法
摘要:一、基本的SELECT语句 1. “*”的注意事项:在SELECT语句中,用*来选取所有的列,这是一个应该抵制的习惯。 虽然节省了输入列名的时间,但是也意味着获得的数据比真正需要的数据多的多。相应的,也会降低应用程序的性能及网络性能。 良好的规则是只选所需。 2. join子句 join是用来定义如何从多个表中选取数据并组合成一个结果集。 join必需是因为(1)我们所要获取的所有信息并不都在一个表中,或者(2)所要返回的信息都在一个表中,但是其上设置的条件信息却在另一个表中。 join的共同点是通过记录的连接列,把一条记录同一条或者多条其他记录进行匹配,从而产生出是这些记录的超级的记... 阅读全文
posted @ 2013-09-18 08:48 莫水千流 阅读(1187) 评论(0) 推荐(0) 编辑
Morton Code
摘要:莫顿码 ,实现了一维与二维(或多维)的转换。它通过交叉存储两个数的位产生一个数,即莫顿码。可以应用于为一个整数对产生一个唯一索引。例如,对于坐标系中的坐标点使用莫顿编码生成的莫顿码,可以唯一索引对应的点。这些索引为“Z”形排序 。计算莫顿码:有两种方式,一交叉分离计算,二查询对应的莫顿表计算。例如,... 阅读全文
posted @ 2013-09-16 14:33 莫水千流 阅读(5636) 评论(0) 推荐(0) 编辑
vs 字体
摘要:看代码看得眼疼不能不说是程序员的恶梦,那么,选择适当的字体也算是对自己的救赎吧。周末闲得无聊,在网上乱逛,搜索了一些资料整理一下给大家分享,仅作记录而已,参考使用:1.一个编程人员痛苦的选择一般适合用作程序代码显示的字体,有下列几个:Courier New 9pt, Verdana, Lucida ... 阅读全文
posted @ 2013-09-14 11:23 莫水千流 阅读(3082) 评论(1) 推荐(0) 编辑
sql 语言
摘要:表3.1 SQL语言的动词SQL 功 能动 词数 据 查 询SELECT 数 据 定 义CREATE,DROP,ALTER数 据 操 纵INSERT,UPDATEDELETE数 据 控 制GRANT,REVOKE基本表的定义、删除与修改一、定义基本表CREATE TABLE ( [ ] [, [ ] ] … [, ] ); 如果完整性约束条件涉及到该表的多个属性列,则必须定义在表级上,否则既可以定义在列级也可以定义在表级。学生表Student建立“学生”表Student,学号是主码,姓名取值唯一。 CREATE TABLE Student (Sno CHAR(9) PRIMARY KEY... 阅读全文
posted @ 2013-09-13 23:20 莫水千流 阅读(1207) 评论(0) 推荐(0) 编辑
sqllite3
摘要:OS X自从10.4后把SQLite这套相当出名的数据库软件,放进了作业系统工具集里。OS X包装的是第三版的SQLite,又称SQLite3。这套软件有几个特色: 软件属于公共财(public domain),SQLite可说是某种「美德软件」(virtueware),作者本人放弃着作权,而给使用SQLite的人以下的「祝福」(blessing): May you do good and not evil. 愿你行善莫行恶 May you find forgiveness for yourself and forgive others. 愿你原谅自己宽恕他人 May ... 阅读全文
posted @ 2013-09-13 21:19 莫水千流 阅读(510) 评论(0) 推荐(0) 编辑
输入法核心数据结构及算法的设计
摘要:问题的关键在于如何做到智能输入提示呢?由于很多单词是共享前缀的,才使得用户输入过程中,智能地提示可供选择的词组。因此,创建共享前缀树用于存储单词词条,并在用户输入过程中实时地查寻前缀相同的词条是一个非常好的思路。如果你学过数据结构的话,就知道这种结构叫“键树”。输入法只需要实现三个非常重要的函数即可:[java]view plaincopy/***插入一个单词**@paramterm*要插入的单词*/publicvoidinsert(Stringterm);/***删除一个单词**@paramterm*要删除的单词*/publicvoiddelete(Stringterm);/***获取提示的 阅读全文
posted @ 2013-09-13 20:53 莫水千流 阅读(2762) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示