上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 74 下一页
  2013年9月20日
摘要: 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 莫水千流 阅读(304) 评论(0) 推荐(0) 编辑
  2013年9月19日
摘要: 前几天,重做了系统。周末因为接到一笔单子,很兴奋啊。第一次接到私活。然后就装Office2007,打算看需求的。居然安装的时候出现错误,提示1706错误,后面一串错误信息,也懒得看,以为是文件坏了。今天,到单位。同事发给我一个好的Office安装包,我试了一下,发现还是出现1706错误。那我现在能肯定,是我机器配置的问题了。(在这里说一下,我现在的机器配置是window7旗舰版+vs2008。)在网上搜了一下,看了几篇文章,基本肯定是安装顺序的问题了,因为我以前貌似是先安装Office2007,然后安装VS2008的,反正是没遇到过这个问题。现在知道是这个原因,但是要我先卸载VS2008,然后 阅读全文
posted @ 2013-09-19 20:48 莫水千流 阅读(3288) 评论(0) 推荐(0) 编辑
  2013年9月18日
摘要: 写代码时大家都会使用缩进(indentation)和对齐(alignment),这是两个相关而又不同的概念,两者都是为了提高代码的可读性。缩进出现在一行的最左边,目的是明显地区分开包含与被包含的代码;对齐则是为了使代码美观、整洁。下例中,类的两个成员变量相对于类名来说具有一级缩进;两个变量的注释部分采用了对齐显示。它使用了Tab(假设一个Tab等于8个空格的大小)来缩进和对齐,一块绿色表示一个Tab。同样的代码,在另一个开发人员的机器上(一个Tab等于4个空格的大小)打开可能就不再对齐:造成这一现象的原因是代码的对齐使用了Tab,而不同编辑器的Tab键大小设置不一样。因此下一个Tab stop 阅读全文
posted @ 2013-09-18 18:55 莫水千流 阅读(1814) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 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 莫水千流 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 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 莫水千流 阅读(732) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: 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) 编辑
摘要: 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) 编辑
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 74 下一页