abc_begin

导航

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页

2017年12月10日 #

C++时间操作

摘要: C支持的日常时间格式或种类 1、时间值 time_t 时间值是指从1970-01-01 00:00:00 +0000 (UTC) 这个时间点开始到当前时间的秒数。 在C语言中,用time_t来表示一个秒数,查看头文件可以发现time_t是对long的一个重定义而已。 相关函数:time() 2、时间 阅读全文

posted @ 2017-12-10 22:47 LastBattle 阅读(9460) 评论(0) 推荐(1)

2017年12月3日 #

The Way to Go读书笔记_第4章_基本结构和基本数据类型

摘要: “_”标识符 _ 本身就是一个特殊的标识符,被称为空白标识符。它可以像其他标识符那样用于变量的声明或赋值(任何类型都可以赋值给它),但任何赋给这个标识符的值都将被抛弃,因此这些值不能在后续的代码中使用,也不可以使用这个标识符作为变量对其它变量进行赋值或运算。 包的概念 包是结构化代码的一种方式:每个 阅读全文

posted @ 2017-12-03 19:28 LastBattle 阅读(250) 评论(0) 推荐(0)

735. Replace With Greatest From Right【medium】

摘要: Given an array of integers, replace every element with the next greatest element (greatest element on the right side) in the array. Since there is no 阅读全文

posted @ 2017-12-03 18:41 LastBattle 阅读(126) 评论(0) 推荐(0)

2017年12月2日 #

Go快速入门

摘要: 整理一些Go最基本的语法,旨在快速入门。 最简单的hello world 几点说明: 1、package main 定义了包名。你必须在源文件中非注释的第一行指明这个文件属于哪个包,如:package main。package main表示一个可独立执行的程序,每个 Go 应用程序都包含一个名为 m 阅读全文

posted @ 2017-12-02 12:24 LastBattle 阅读(2434) 评论(0) 推荐(0)

2017年11月30日 #

一致性哈希

摘要: 哈希函数 哈希函数是一种计算方法,它可以把一个值A映射到一个特定的范围[begin, end]之内。对于一个值的集合{k1, k2, … , kN},哈希函数把他们均匀的映射到某个范围之中。这样,通过这些值就可以很快的找到与之对应的映射地址{index1, index2, … , indexN}。对 阅读全文

posted @ 2017-11-30 12:03 LastBattle 阅读(454) 评论(0) 推荐(0)

2017年11月29日 #

Enable multithreading to use std::thread: Operation not permitted问题解决

摘要: 在用g++ 4.8.2编译C++11的线程代码后,运行时遇到了如下报错: terminate called after throwing an instance of 'std::system_error' what(): Enable multithreading to use std::thre 阅读全文

posted @ 2017-11-29 10:51 LastBattle 阅读(1029) 评论(0) 推荐(0)

2017年11月28日 #

strtol / strtoll / strtoul / strtoull

摘要: function long int strtol (const char* str, char** endptr, int base); —— Convert string to long integer long long int strtoll (const char* str, char** 阅读全文

posted @ 2017-11-28 22:15 LastBattle 阅读(1116) 评论(0) 推荐(0)

vim设置

摘要: tab为4个空格 set ts=4 set expandtab 批量替换tab成为4个空格 :%retab! 阅读全文

posted @ 2017-11-28 17:48 LastBattle 阅读(132) 评论(0) 推荐(0)

sourceInsight设置

摘要: 复制后光标定格在行尾 Options -> Preferences -> Typing -> After pasting,select:at end of pasted text tab键设置为4个空格 Option -> Preferences -> Syntax Formatting -> Do 阅读全文

posted @ 2017-11-28 17:44 LastBattle 阅读(363) 评论(0) 推荐(0)

2017年11月26日 #

git简明教程

摘要: 配置Git 首先在本地创建ssh key; 后面的your_email@youremail.com改为你在github上注册的邮箱,之后会要求确认路径和输入密码,我们这使用默认的一路回车就行。成功的话会在~/下生成.ssh文件夹,进去,打开id_rsa.pub,复制里面的key。 回到github上 阅读全文

posted @ 2017-11-26 21:55 LastBattle 阅读(276) 评论(0) 推荐(0)

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 20 下一页