随笔 - 741  文章 - 0  评论 - 260  阅读 - 416万
07 2015 档案
C/C++中static关键字详解-zz
摘要:静态变量作用范围在一个文件内,程序开始时分配空间,结束时释放空间,默认初始化为0,使用时可以改变其值。 静态变量或静态函数只有本文件内的代码才能访问它,它的名字在其它文件中不可见。用法1:函数内部声明的static变量,可作为对象间的一种通信机制 如果一局部变量被声明为static,那么将只有唯... 阅读全文
posted @ 2015-07-23 10:09 莫水千流 阅读(259) 评论(0) 推荐(0) 编辑
base64 encoding
摘要://https://en.wikipedia.org/wiki/Base64 std::string base64Encode(const std::vector& byteData); std::vector base64Decode(std::string & const inputString... 阅读全文
posted @ 2015-07-22 22:02 莫水千流 阅读(617) 评论(0) 推荐(0) 编辑
anything vs everything
摘要:everything多用于肯定而anything多用于否定和疑问语气 anything 1) 任何事情/东西,可以用在肯定句/否定句/疑问句中.如:You can take anything you like.Do you have anything to say?There is not anyt... 阅读全文
posted @ 2015-07-22 08:51 莫水千流 阅读(881) 评论(0) 推荐(0) 编辑
cong
摘要:Directions:  Study the following cartoon carefully and write an essay in which you should 1) describe the cartoon, 2) interpret its meaning,... 阅读全文
posted @ 2015-07-10 07:44 莫水千流 阅读(652) 评论(0) 推荐(0) 编辑
invalid initialization of non-const reference of type与discards qualifiers
摘要:参数传递 函数参数的传递是初始化语义:用调用者的实参去初始化函数的形参,如果参数是对象,需要调用该类的拷贝构造函数,如果没有显式定义的拷贝构造函数,则执行默认的按成员拷贝 返回值传递 函数返回值的传递内容稍多,示例代码:TestClassget_test_obj(){TestClassret_ob... 阅读全文
posted @ 2015-07-07 13:14 莫水千流 阅读(2305) 评论(0) 推荐(0) 编辑
堪称最好的A*算法
摘要:原文地址:http://theory.stanford.edu/~amitp/GameProgramming/相关链接:http://www-cs-students.stanford.edu/%7Eamitp/gameprog.html#Pathshttp://blog.csdn.net/b2b16... 阅读全文
posted @ 2015-07-02 09:11 莫水千流 阅读(472) 评论(0) 推荐(0) 编辑

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

点击右上角即可分享
微信分享提示