摘要: 半伪代码: void main { string line; getline(ifs, line); replace(line.begin(), line.end(), ',', '\n'); replace(line.begin(), line.end(), '\r', '\n'); istrin 阅读全文
posted @ 2017-06-14 16:10 kilen 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 转自:http://www.jellythink.com/archives/205 (果冻想) 前言 这篇文章总结的是C++中的类型转换,这些小的知识点,有的时候,自己不是很注意,但是在实际开发中确实经常使用的。俗话说的好,不懂自己写的代码的程序员,不是好的程序员;如果一个程序员对于自己写的代码都不 阅读全文
posted @ 2017-05-11 11:45 kilen 阅读(4212) 评论(0) 推荐(1) 编辑
摘要: import hashlib src = "afnjanflkas" m2 = hashlib.md5() m2.update(src) print m2.hexdigest() > 输出的值 md5值 阅读全文
posted @ 2017-05-06 21:56 kilen 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 下面是对应的形式,自定义的forms 阅读全文
posted @ 2017-05-03 21:42 kilen 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 之前在寫 MySQL 的時候常常會遇到如果直接用 bash script 下 SQL 指令就會出現提示訊息,雖然無傷大雅,但看得很煩 Warning: Using a password on the command line interface can be insecure 在 MYSQL 5.6 阅读全文
posted @ 2017-04-26 21:02 kilen 阅读(165) 评论(0) 推荐(0) 编辑
摘要: git clone 不需要输入密码步骤 1, vim ~/.git-credentials 2, git config --global credential.helper store 3, vim ~/.gitconfig 4, git clone https://username:passwor 阅读全文
posted @ 2017-04-25 10:48 kilen 阅读(1133) 评论(0) 推荐(0) 编辑
摘要: 1、git detached state(git checkout <commit id>):pull data from version package,you can not do any operation in this state,只是简单的将HEAD指向一个<commit id>(一个不 阅读全文
posted @ 2017-04-24 14:28 kilen 阅读(86) 评论(0) 推荐(0) 编辑
摘要: 整了一阵子google proto message.h, 遇到很多问题,各种百度、google ,估计是用的人不是很多,整的焦头烂额,很多API都不知道该怎么用,只能一点一点的扣,为了方便在这里先简单的记一下,遇到同样问题的同行可以稍稍借鉴一下,不对的地方还望多多指教,一起讨论! 五一完成该工作,w 阅读全文
posted @ 2017-04-24 12:24 kilen 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1、replace() (1) 替换字符 str1 = "abcdef"; replace(str1.begin(), str1.end(), ‘a’, '1'); >str1 中的 a 替换成 1 (2)字符串中连续字符串替换成指定字符串 str1.replace(sit, length, "st 阅读全文
posted @ 2017-04-24 12:11 kilen 阅读(103) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <string> int main (){ std::string name; std::cout << "Please, enter your full name: "; std::getline (std::cin,name); std:: 阅读全文
posted @ 2017-04-24 12:11 kilen 阅读(95) 评论(0) 推荐(0) 编辑