• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
ArgenBarbie
博客园    首页    新随笔    联系   管理    订阅  订阅
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页
2016年3月14日
socket编程
摘要: socket是“open—write/read—close”模式的一种实现。 1. socket()函数 int socket(int domain, int type, int protocol); socket函数对应于普通文件的打开操作。普通文件的打开操作返回一个文件描述字,而socket() 阅读全文
posted @ 2016-03-14 17:09 ArgenBarbie 阅读(225) 评论(0) 推荐(0)
map和unordered_map
摘要: 1、boost::unordered_map, 它与 stl::map的区别就是,stl::map是按照operator<比较判断元素是否相同,以及比较元素的大小,然后选择合适的位置插入到树中。所以,如果对map进行遍历(中序遍历)的话,输出的结果是有序的。顺序就是按照operator< 定义的大小 阅读全文
posted @ 2016-03-14 16:52 ArgenBarbie 阅读(225) 评论(0) 推荐(0)
进程和线程
摘要: 进程,是并发执行的程序在执行过程中分配和管理资源的基本单位,是一个动态概念,竟争计算机系统资源的基本单位。每一个进程都有一个自己的地址空间,即进程空间或(虚空间)。进程空间的大小只与处理机的位数有关,一个 16 位长处理机的进程空间大小为 2^16 ,而 32 位处理机的进程空间大小为 2^32 。 阅读全文
posted @ 2016-03-14 15:45 ArgenBarbie 阅读(240) 评论(0) 推荐(0)
C/C++中 malloc和new区别
摘要: 1. malloc与free是C++/C语言的标准库函数,new/delete是C++的运算符。它们都可用于申请动态内存和释放内存。     new 是个操作符,和什么"+","-","="……有一样的地位。     malloc是个分配内存的函数,供你调用的。     new 是一个操作符,可以重 阅读全文
posted @ 2016-03-14 15:20 ArgenBarbie 阅读(289) 评论(0) 推荐(0)
2016年3月13日
71. Simplify Path
摘要: Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c"     测试用例: "/." - 阅读全文
posted @ 2016-03-13 23:24 ArgenBarbie 阅读(145) 评论(0) 推荐(0)
69. Sqrt(x)
摘要: Implement int sqrt(int x). Compute and return the square root of x. 1. 注意:   2. Newton's Method   阅读全文
posted @ 2016-03-13 15:40 ArgenBarbie 阅读(189) 评论(0) 推荐(0)
68. Text Justification *HARD*
摘要: Given an array of words and a length L, format the text such that each line has exactly L characters and is fully (left and right) justified. You shou 阅读全文
posted @ 2016-03-13 11:57 ArgenBarbie 阅读(206) 评论(0) 推荐(0)
2016年3月12日
65. Valid Number *HARD*
摘要: Validate if a given string is numeric. Some examples:"0" => true" 0.1 " => true"abc" => false"1 a" => false"2e10" => true Note: It is intended for the 阅读全文
posted @ 2016-03-12 23:21 ArgenBarbie 阅读(165) 评论(0) 推荐(0)
62. 63. Unique Paths 64. Minimum Path Sum
摘要: 1. 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 right at an 阅读全文
posted @ 2016-03-12 21:43 ArgenBarbie 阅读(188) 评论(0) 推荐(0)
61. Rotate List
摘要: Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3- 阅读全文
posted @ 2016-03-12 10:12 ArgenBarbie 阅读(197) 评论(0) 推荐(0)
上一页 1 ··· 18 19 20 21 22 23 24 25 26 ··· 29 下一页
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3