各位看官们,大家好,上一回中咱们说的是基于AF_INET域数据报套接字通信的例子,这一回咱们说的例子是:套接字通信模型 。闲话休提,言归正转。让我们一起talk C栗子吧!...
分类:
编程语言 时间:
2016-05-31 06:31:58
阅读次数:
157
打印杨辉三角形(Pascal’s triangle)——利用队列
1. 杨辉三角的概念
杨辉三角,又称贾宪三角形,帕斯卡三角形,是二项式系数在三角形中的一种几何排列。
将二项式(a+b)i展开,其系数构成杨辉三角形(国外称Pascal’s triangle),按行将展开式系数的前n行打印出来。从三角形的形状可知,除第1行以外,在打印第i行时,用到上一行(第i-1行)的数据,在打印第i+1行时,又用到第i行的数据。...
分类:
其他好文 时间:
2016-05-31 06:32:10
阅读次数:
711
最近做了一些与短信相关的工作,在这里做一个学习的梳理,愿与您共同分享学习。要完成一个短信接口需要完成这样几件事儿:模板管理、接口管理、拼接接口数据
模板管理:最基本的对短信进行增删该查;第二,将可变元素抽成变量,并进行管理。这个模块一般的第三方会提供一个短信管理后台,但是如果第三方不提供的话则需要我们自己去做一个短信模板啦。
接口管理:一般第三方提供socket接口,WebServ...
分类:
其他好文 时间:
2016-05-31 06:30:22
阅读次数:
207
目录
一、MySQL的相关概念介绍二、Windows下MySQL的配置
配置步骤MySQL服务的启动、停止与卸载
三、MySQL脚本的基本组成四、MySQL中的数据类型五、使用MySQL数据库
登录到MySQL创建一个数据库选择所要操作的数据库创建数据库表
六、操作MySQL数据库
向表中插入数据查询表中的数据更新表中的数据删除表中的数据
七、创建后的修改...
分类:
数据库 时间:
2016-05-31 06:32:02
阅读次数:
247
Oracle 12c 已发布很久,一直想找个时间好好学习一下,毕竟后续12c将会逐渐替代现有数据库版本,成为主流数据库版本。现就12c 一些常用的
特性给大家一起学习一下。
1. 在线重命名和重新定位活跃数据文件
不同于以往的版本,在Oracle数据库12c R1版本中对数据文件的迁移或重命名不再需要太多繁琐的步骤,即把表空
间置为只读模式,接下来是对数据文件进行离线操作。在12c R...
分类:
数据库 时间:
2016-05-31 06:32:53
阅读次数:
281
最近在学习大数据的离线分析技术,所以在这里通过做一个简单的网站点击流数据分析离线系统来和大家一起梳理一下离线分析系统的架构模型。当然这个架构模型只能是离线分析技术的一个简单的入门级架构,实际生产环境中的大数据离线分析技术还涉及到很多细节的处理和高可用的架构。这篇文章的目的只是带大家入个门,...
分类:
Web程序 时间:
2016-05-31 06:32:23
阅读次数:
621
1、介绍周末在逛慕课网的时候,看到了一张学习计划报告图,详细记录了自己一周的学习情况,天天都是0节课啊!正好在学习Android自定义View,于是就想着自己去写了一个,这里先给出一张慕课网的图,和自己的效果图。yissan的博客,未经允许严禁转载 http://blog.csdn.net/yissan2、实现分析我们要实现这样一个折线统计图,必要的信息主要有下面几个先看纵轴,纵轴需要的信息有最大值...
分类:
移动开发 时间:
2016-05-31 06:31:52
阅读次数:
322
一.概述
The Generic Attribute Profile (GATT) defines a service framework using the
Attribute Protocol. This framework defines proceduresand formats of services
and their characteristics. The procedu...
分类:
其他好文 时间:
2016-05-31 06:32:02
阅读次数:
803
generic attribute profile (GATT)
The Generic Attributes (GATT) define a hierarchical data structure that is exposed to connected Bluetooth LE devices.
一.UUID
GATT Services
GATT Attribute Types
...
分类:
其他好文 时间:
2016-05-31 06:32:03
阅读次数:
541
但现在看起来真不爽,main.c依赖的文件不能在工程中管理,要修改那些文件的话麻烦大了。如何既能分成多个文件又能在工程中看到呢?...
分类:
编程语言 时间:
2016-05-31 06:29:55
阅读次数:
152
题目链接:https://leetcode.com/problems/3sum/
题目:
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of...
分类:
其他好文 时间:
2016-05-31 06:30:44
阅读次数:
346
题目链接:https://leetcode.com/problems/maximal-square/
题目:
Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area.
For example, given the...
分类:
其他好文 时间:
2016-05-31 06:29:17
阅读次数:
172
题目链接:https://leetcode.com/problems/clone-graph/
题目:
Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.
OJ's undirected graph serialization:
...
分类:
其他好文 时间:
2016-05-31 06:29:58
阅读次数:
360
题目链接:https://leetcode.com/problems/unique-binary-search-trees-ii/
题目:
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, y...
分类:
其他好文 时间:
2016-05-31 06:29:09
阅读次数:
234
题目链接:https://leetcode.com/problems/permutation-sequence/
题目:
The set [1,2,3,…,n] contains a total of n! unique permutations.
By listing and labeling all of the permutations in order,
We get ...
分类:
其他好文 时间:
2016-05-31 06:31:18
阅读次数:
131
题目链接:https://leetcode.com/problems/range-sum-query-2d-immutable/
题目:
Given a 2D matrix matrix, find the sum of the elements inside the rectangle defined by its upper left corner (row1, col1) and l...
分类:
其他好文 时间:
2016-05-31 06:28:37
阅读次数:
217
1)首先去官网下载boost源码安装包:http://www.boost.org/ 选择下载对应的boost源码包。本次下载使用的是 boost_1_60_0.tar.gz (2)解压文件:tar -zxvf boost_1_60_0.tar.gz (3)进入源代码路径执行命令 ./bootstra ...
分类:
其他好文 时间:
2016-05-31 06:29:05
阅读次数:
218