摘要: 题目描述:Given an array withnobjects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order re... 阅读全文
posted @ 2014-10-20 22:58 skycore 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 文件描述符:进程通过文件描述符来操作文件,文件描述符可以通过open, openat, creat系统调用返回;shell和其他应用默认打开标准输入(STDIN_FILENO),标准输出(STDOUT_FILENO),标准错误(STDERR_FILENO)三个文件描述符。open和openat函数:... 阅读全文
posted @ 2014-10-20 21:20 skycore 阅读(209) 评论(0) 推荐(0) 编辑
摘要: 0 导读 缩写:构造函数ctor 析构函数 dtor 1 让自己习惯C++ C++次语言:C, Object_Oriented C++, Template C++, STL 以const, enum, inline替换#define const 成员函数承诺绝对不改变其对象的... 阅读全文
posted @ 2014-10-20 08:38 skycore 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Find the contiguous subarray within an array (containing at least one number) which has the largest product.For example, given the array[2,3,-2,4... 阅读全文
posted @ 2014-10-20 08:31 skycore 阅读(137) 评论(0) 推荐(0) 编辑