- 浏览: 99408 次
-
最新评论
文章列表
Templates
Function templates
Function templates are special functions that can operate with generic types. This allows us to create a function template whose functionality can be adapted to more than one type or class without repeating the entire code for each type.
In C++ this can be ac ...
- 2013-05-15 18:22
- 浏览 240
- 评论(0)
Friendship and inheritance
Friend functions
In principle, private and protected members of a class cannot be accessed from outside the same class in which they are declared. However, this rule does not affect
friends.
Friends are functions or classes declared with the friend keyword.
If we wan ...
- 2013-05-15 16:34
- 浏览 253
- 评论(0)
Classes (I)
A class is an expanded concept of a data structure: instead of holding only data, it can hold both data and functions.
An object is an instantiation of a class. In terms of variables, a class would be the type, and an object would be the variable.
Classes are generally declared using t ...
- 2013-05-15 16:31
- 浏览 338
- 评论(0)
Data Structures
We have already learned how groups of sequential data can be used in C++. But this is somewhat restrictive, since in many occasions what we want to store are not mere sequences of elements all of the same data type, but sets of different elements with different
data types.
Data st ...
- 2013-05-15 16:29
- 浏览 296
- 评论(0)
Dynamic Memory
Until now, in all our programs, we have only had as much memory available as we declared for our variables, having the size of all of them to be determined in the source code, before the execution of the program. But, what if we need a variable amount of memory
that can only be dete ...
- 2013-05-15 14:44
- 浏览 351
- 评论(0)
String Functions
The string functions are:
gsub( Ere, Repl, [ In ] )
Performs exactly as the sub function, except that all occurrences of the regular expression are replaced.
sub( Ere, Repl, [ In ] )
Replaces the first occurrence of the extended regular expression specified by the Ere param ...
- 2013-05-15 10:36
- 浏览 255
- 评论(0)
awk Command
Purpose
Finds lines in files that match a pattern and performs specified actions on those lines.
Syntax
awk [ -u ] [ -F Ere ] [ -v Assignment ] ... { -f ProgramFile | 'Program' } [ [ File ... | Assignment ... ] ]
...
Description
The awk command utilizes a set of user-supplied ...
- 2013-05-15 10:35
- 浏览 284
- 评论(0)
9.awk的流程控制流程控制语句是任何程序设计语言都不能缺少的部分。任何好的语言都有一些执行流程控制的语句。awk提供的完备的流程控制语句类似于C语言,这给我们编程带来了极大的方便。
1、BEGIN和END:在awk中两个特别的表 ...
- 2013-05-15 10:34
- 浏览 285
- 评论(0)
1.什么是awk?你可能对UNIX比较熟悉,但你可能对awk很陌生,这一点也不奇怪,的确,与其优秀的功能相比,awk还远没达到它应有的知名度。awk是什么?与其它大多数UNIX命令不同的是,从名字上看,我们不可能知道awk的功能:它既不是具有独立意义的英文单词,也不是几个相关单词的缩写。事实上,awk是三个人名的缩写,他们是:Aho、(Peter)Weinberg和(Brain)Kernighan。正是这三个人创造了awk---一个优秀的样式扫描与处理工具。
AWK的功能是什么?与sed和grep很相似,awk是一种样式扫描与处理工具。但其功能却大大强于se
- 2013-05-15 10:33
- 浏览 305
- 评论(0)
数据模型
1.数据模型的三要素
(1)数据结构数据结构是所研究的对象类型(Object Type)的集合。这些对象和对象类型是数据库的组成成分。一般可分为两类:一类是与数据类型、内容和其它性质有关的对象;一类是与数据之间的联系有关的对象。前者如网状模型中的数据项和记录,关系模型中的域、属性和关系等。后者如网状模型中的关系模型。
在数据库领域中,通常按照数据结构的类型来命名数据模型,进而对数据库管理系统进行分类。如层次结构、网状结构和关系结构的数据模型分别称作为层次模型、网状模型和关系模型。相应地,数据库分别称作为层次数据库、网状数据库和关系数据库。
(2)数据操作数据操作是指对各 ...
- 2013-05-15 10:05
- 浏览 565
- 评论(0)
得到一份新工作是一件令人激动人心的事情,但也有点伤脑筋,如何做的很好、脱颖而出、成为团队的一员呢?
为引导那些刚进入新环境的职员,风投行业知名人士、前谷歌高层Hunter Walk在LinkedIn上引用和总结了前时代明镜集团
Al Casey(1922-2004)的提出的“14条忠告”作为前车之鉴:
1.如果你想要领先这个世界上的绝大多数人,就必须要学会观察;
2.学会聆听——不要随意卖弄你的见识,如果你光说不听,那你什么也学不到;
3.突破固有的思维,即使它已经根深蒂固;
4.认真对待你的同事,让他们喜欢你,他们将是你最好的资源;
5.尽一切可能帮助你的老板,提升他/她的 ...
- 2013-05-15 09:22
- 浏览 440
- 评论(0)
asc 按升序排列desc 按降序排列下列语句部分是Mssql语句,不可以在access中使用。SQL分类:
DDL—数据定义语言(CREATE,ALTER,DROP,DECLARE)
DML—数据操纵语言(SELECT,DELETE,UPDATE,INSERT)
DCL—数据控制语言(GRANT,REVOKE,COMMIT,ROLLBACK)
首先,简要介绍基础语句:1、说明:创建数据库CREATE DATABASE database-name
2、说明:删除数据库drop database dbname
3、说明:备份sql server
--- 创建 备 ...
- 2013-05-14 20:55
- 浏览 327
- 评论(0)
1966年,Alan J. Perlis
1967年,Maurice V. Wilkes
1968年,Richard Hamming
1969年,Marvin Minsky
1970年,James H. Wilkinson
1971年,John McCarthy (computer scientist)
1972年,Edsger Dijkstra
1973年,Charles W. Bachman
1974年,高德纳
1975年,Allen Newell和Herbert A. Simon
1976年,Michael O. Rabin和Dana S. Scott
1977年,J ...
- 2013-05-14 17:20
- 浏览 1121
- 评论(0)
日前,本地生活服务类公司丁丁网再度获得阿里巴巴集团的投资。
业内人士认为,阿里巴巴在2006年收购口碑网以后,一直就在布局O2O,此次增持丁丁网,更显示其看好O2O业务的发展前景,阿里巴巴正在将自己的触角更深入地向线下延伸。
目前,中国的O2O市场依然处于早期的发展阶段。其实不止是阿里,像腾讯和百度等巨头们都已经在O2O领域排兵布阵,希望抓住生活服务电商化的机会,而这也将是一场互联网巨头从PC端转向移动端的实力较量。
O2O前景被看好
O2O线上和线下的连接很重要,如果没有足够的规模和线下销售团队,公司很难做好。
所谓O2O,是指Online(线上)与Offline ...
- 2013-05-14 10:46
- 浏览 410
- 评论(0)
POINTERS TO FUNCTIONS
#include "stdio.h"
int add(int a, int b)
{
return (a+b);
}
int sub(int a, int b)
{
return (a-b);
}
int calcu(int a, int b, int (*f)(int , int))
{
int result;
result=(*f)(a,b);
return result;
}
int main()
{
int ...
- 2013-05-14 10:41
- 浏览 267
- 评论(0)