上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 35 下一页
摘要: 一:预处理过程 预处理器将进行宏替换、条件编译和包含指定的文件。以“#”开头的命令行就是预处理器处理的对象。这些命令行可以出现在任何地方,其作用可延续到所在翻译单元的末尾。每一行都会单独进行分析。预处理过程,在逻辑上可划分为下面几个连续的阶段: 1:进行三字符序列替换 ... 阅读全文
posted @ 2015-08-30 21:13 gqtc 阅读(1052) 评论(1) 推荐(0)
摘要: 一:内存分配与释放 1:man手册#include void *calloc(size_t nmemb, size_t size);void *malloc(size_t size);void free(void *ptr);void *realloc(void *ptr, size_... 阅读全文
posted @ 2015-08-30 11:33 gqtc 阅读(375) 评论(0) 推荐(0)
摘要: 众所周知,Linux下的多路复用函数select采用描述符集表示处理的描述符。描述符集的大小就是它所能处理的最大描述符限制。通常情况下该值为1024,等同于每个进程所能打开的描述符个数。 增大描述符集大小的唯一方法是先增大FD_SETSIZE的值,然后重新编译内核,不重... 阅读全文
posted @ 2015-08-27 22:24 gqtc 阅读(830) 评论(0) 推荐(0)
摘要: A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or... 阅读全文
posted @ 2015-08-23 21:28 gqtc 阅读(146) 评论(0) 推荐(0)
摘要: 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 the fo... 阅读全文
posted @ 2015-08-23 13:16 gqtc 阅读(136) 评论(0) 推荐(0)
摘要: Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the interval... 阅读全文
posted @ 2015-08-23 10:51 gqtc 阅读(153) 评论(0) 推荐(0)
摘要: Given a collection of intervals, merge all overlapping intervals. For example,Given [1,3], [2,6], [8,10], [15,18],return [1,6], [8,10], [... 阅读全文
posted @ 2015-08-22 17:01 gqtc 阅读(126) 评论(0) 推荐(0)
摘要: Given an integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order. For example,Given n = 3,You should return ... 阅读全文
posted @ 2015-08-22 15:43 gqtc 阅读(111) 评论(0) 推荐(0)
摘要: The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other. Given an integer... 阅读全文
posted @ 2015-08-22 15:25 gqtc 阅读(143) 评论(0) 推荐(0)
摘要: Given an array of non-negative integers, you are initially positioned at the firstindex of the array. Each element in the array represent... 阅读全文
posted @ 2015-08-16 16:12 gqtc 阅读(119) 评论(0) 推荐(0)
上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 35 下一页