之前总结了Linux的系统创建,主要是fork()函数和vfork()函数,最近总结了Linux进程的终止,主要的调用是_exit()和exit(). 先看看两个函数的原型以及各自属于的头文件,可以发现这两个方法的区别 _exit()函数: 从_exit()的头文件能够发现,_exit()是属于Li ...
分类:
系统服务 时间:
2017-08-24 09:55:19
收藏:
0 评论:
0 赞:
0 阅读:
311
Left join用法 在使用left join时,on和where条件的区别如下: 1、 on条件是在生成临时表时使用的条件,它不管on中的条件是否为真,都会返回左边表中的记录。 2、where条件是在临时表生成好后,再对临时表进行过滤的条件。这时已经没有left join的含义(必须返回左边表的 ...
分类:
数据库技术 时间:
2017-08-24 09:54:20
收藏:
0 评论:
0 赞:
0 阅读:
276
请看下面三种定义: const char *p; char const *p; char * const p; 首先看第一种,我们先看p,本着”从里往外”的原则,p是一个char *类型的变量,但char *前面有一个const修饰,即p所指向的内容为const类型不可修改,我们可以写如下程序进行实 ...
分类:
其他 时间:
2017-08-24 09:54:10
收藏:
0 评论:
0 赞:
0 阅读:
259
http://www.cogs.pro/cogs/problem/problem.php?pid=133 ★★★ 输入文件:cowjog.in 输出文件:cowjog.out 简单对比时间限制:1 s 内存限制:128 MB Bessie准备用从牛棚跑到池塘的方法来锻炼. 但是因为她懒,她只准备沿着 ...
分类:
其他 时间:
2017-08-24 09:53:44
收藏:
0 评论:
0 赞:
0 阅读:
227
#文件操作 文件操作模式 r:只读 f = open("小重山","r",encoding="utf-8") f.read() #按字符读 f.readline() #按行读取,光标发生位置变化,读取的最后位置 f.readline() f.readlines()... ...
分类:
编程语言 时间:
2017-08-24 09:53:18
收藏:
0 评论:
0 赞:
0 阅读:
311
HDFS ,Hadoop Distribute File System,hadoop分布式文件系统。 主从架构,分主节点NameNode,从节点DataNode.当然还有个SecondaryName,但这不是浅析里的点.这里主要讲下namenode和datanode的基本概念, 并描述下读写过程. ...
分类:
其他 时间:
2017-08-24 09:52:29
收藏:
0 评论:
0 赞:
0 阅读:
245
题目: Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: T ...
分类:
其他 时间:
2017-08-24 09:51:59
收藏:
0 评论:
0 赞:
0 阅读:
289
一、文章概述 本演示介绍了WPF的静态资源和动态资源的基本使用,并对两者做了简单的比较。静态资源(StaticResource)指的是在程序载入内存时对资源的一次性使用,之后就不再访问这个资源了;动态资源(DynamicResource)使用指的是在程序运行过程中然会去访问资源。 二、定义并使用资源 ...
分类:
Windows开发 时间:
2017-08-24 09:51:44
收藏:
0 评论:
0 赞:
0 阅读:
249
P1040 加分二叉树 题目描述 设一个n个节点的二叉树tree的中序遍历为(1,2,3,…,n),其中数字1,2,3,…,n为节点编号。每个节点都有一个分数(均为正整数),记第i个节点的分数为di,tree及它的每个子树都有一个加分,任一棵子树subtree(也包含tree本身)的加分计算方法如下 ...
分类:
其他 时间:
2017-08-24 09:51:22
收藏:
0 评论:
0 赞:
0 阅读:
338
Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of ...
分类:
其他 时间:
2017-08-24 09:51:02
收藏:
0 评论:
0 赞:
0 阅读:
311
IETF(Internet Engineering Task Force) IETF负责Internet有关的协议制定 RFCs(Request For Comments) IETF制定的与协议相关的文档叫RFCs ...
分类:
其他 时间:
2017-08-24 09:50:52
收藏:
0 评论:
0 赞:
0 阅读:
237
Background Hugo Heavy is happy. After the breakdown of the Cargolifter project he can now expand business. But he needs a clever man who tells him whe ...
分类:
其他 时间:
2017-08-24 09:50:38
收藏:
0 评论:
0 赞:
0 阅读:
270
使用方法 引用jquery和jquery.lazyload.js到你的页面 1 2 <script src="jquery-1.11.0.min.js"></script> <script src="jquery.lazyload.js?v=1.9.1"></script> 1 2 <script ...
分类:
Web开发 时间:
2017-08-24 09:50:26
收藏:
0 评论:
0 赞:
0 阅读:
277
(Udacity Learning Note: CarND-Term1 Project 4) Camera Calibration & Distortion Correction Two Types of Distortion Radial Distortion Tangential Distort ...
分类:
其他 时间:
2017-08-24 09:50:16
收藏:
0 评论:
0 赞:
0 阅读:
743
C#,传入lambda表达式,转化为where条件sql语句。 ...
分类:
数据库技术 时间:
2017-08-24 09:50:02
收藏:
0 评论:
0 赞:
0 阅读:
726
poj2342 Anniversary party (树形dp) Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 9128 Accepted: 5250 Description There is going to be a par ...
分类:
其他 时间:
2017-08-24 09:49:46
收藏:
0 评论:
0 赞:
0 阅读:
241
#【字典】 #映射 #字典是无序存储的,没有位置关系 print(id(a)) #打印a的内存地址 #不可变类型:整型,字符串,元组 #可变类型:列表,字典 dictionary = {'name':'zhangw','age':35,'isboy':True,} dictionary2 = {'n... ...
分类:
编程语言 时间:
2017-08-24 09:49:36
收藏:
0 评论:
0 赞:
0 阅读:
278
https://www.luogu.org/problem/show?pid=2865 题目描述 Bessie has moved to a small farm and sometimes enjoys returning to visit one of her best friends. She ...
分类:
数据库技术 时间:
2017-08-24 09:49:10
收藏:
0 评论:
0 赞:
0 阅读:
360
OJ题号:BZOJ3832、洛谷3573 思路: 建立超级源汇$S$和$T$,DP求出分别以$S$和$T$为源点的最长路$diss$和$dist$。 对于每条边$i$,设定一个权值$w_i=diss_{i.from}+dist_{i.to}-1$。 表示原图中包含这条边的从$S$到$T$的最长路。 ...
分类:
其他 时间:
2017-08-24 09:48:55
收藏:
0 评论:
0 赞:
0 阅读:
291
1、array array相当于是一个增加了STL容器接口的数组,但它不像vector等容器一样可以动态增长,如果需要动态变动array的容量可以使用boost::scoped_array。array适用与对运行速度要求很高的场合。C++11中已支持array。 eg: 2、unordered_ma ...
分类:
其他 时间:
2017-08-24 09:48:25
收藏:
0 评论:
0 赞:
0 阅读:
388