上一页 1 ··· 3 4 5 6 7 8 9 下一页
摘要: .gitattributes文件是一个文本文件, 文件中的一行定义一个路径的若干属性。以行为单位设置一个路径下所有文件的属性 ,格式如下: GRLF和LF CRLF,LF都是用来表示文本换行的方式。CR代表回车,对应字符\r。LF表示换行,对应字符\n。不同操作系统文本使用的换行符各不相同。Wind 阅读全文
posted @ 2020-03-12 10:32 friedCoder 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 查看origin源 删除origin源 git remote rm origin 添加源 git remote add origin git@github.com:Jsmond2016/my study.git git push u origin master 阅读全文
posted @ 2020-03-11 11:29 friedCoder 阅读(174) 评论(0) 推荐(0) 编辑
摘要: XML 一、简介 XML 被设计用来传输和存储数据。 HTML 被设计用来显示数据。 XML 指可扩展标记语言( EX tensible M arkup L anguage) XML 是一种 标记语言 ,很 类似 HTML XML 的设计宗旨是 传输数据 ,而非显示数据 XML 标签没有被预定义。您 阅读全文
posted @ 2020-03-05 08:06 friedCoder 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1. 先将xmind导出为.opml 2. 将opml导入Typora (需要安装pandoc) 阅读全文
posted @ 2020-02-27 14:58 friedCoder 阅读(971) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/qq_35976351/article/details/84799484 阅读全文
posted @ 2020-02-25 20:37 friedCoder 阅读(342) 评论(0) 推荐(0) 编辑
摘要: ``` c++ 英文解释: if you declare a method to be static in your .cc file. The reason is that static means something different inside .cc files than in class declarations It is really stupid, but the keywor 阅读全文
posted @ 2020-02-23 11:15 friedCoder 阅读(368) 评论(0) 推荐(0) 编辑
摘要: 这种问题一般是因为引用了匿名变量。涉及左值和右值的区别。一般函数的参数如果是一个表达式,那将会产生一个第3方的匿名变量传入这个函数中,此时如果引用,没用什么实际意义。 c++中临时变量不能作为非const的引用参数 阅读全文
posted @ 2020-02-23 10:57 friedCoder 阅读(2852) 评论(0) 推荐(0) 编辑
摘要: in C++, cannot assign a pointer to an array. c++中char 与char[]不是一种类型,但是在C里面可以,所以尽量使用C++中的类,如string, vector等等。若非一定要解决这个问题,可以使用`char ptr = new char[2];` 阅读全文
posted @ 2020-02-23 10:54 friedCoder 阅读(6768) 评论(0) 推荐(0) 编辑
摘要: c++中的map类型变量不能为const类型 示例 同string类型一样,map类型也有find方法,用来查找key是否存在。 阅读全文
posted @ 2020-02-14 19:36 friedCoder 阅读(158) 评论(0) 推荐(0) 编辑
摘要: ``` c++ string str = "hello"; str.substr(0,2); //输出"he", 表示[0,2) ``` 阅读全文
posted @ 2020-02-14 19:32 friedCoder 阅读(5589) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 下一页