C/C++中static关键字详解-zz
摘要:静态变量作用范围在一个文件内,程序开始时分配空间,结束时释放空间,默认初始化为0,使用时可以改变其值。 静态变量或静态函数只有本文件内的代码才能访问它,它的名字在其它文件中不可见。用法1:函数内部声明的static变量,可作为对象间的一种通信机制 如果一局部变量被声明为static,那么将只有唯...
阅读全文
posted @
2015-07-23 10:09
莫水千流
阅读(259)
推荐(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) 编辑
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) 编辑
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) 编辑
invalid initialization of non-const reference of type与discards qualifiers
摘要:参数传递 函数参数的传递是初始化语义:用调用者的实参去初始化函数的形参,如果参数是对象,需要调用该类的拷贝构造函数,如果没有显式定义的拷贝构造函数,则执行默认的按成员拷贝 返回值传递 函数返回值的传递内容稍多,示例代码:TestClassget_test_obj(){TestClassret_ob...
阅读全文
posted @
2015-07-07 13:14
莫水千流
阅读(2305)
推荐(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) 编辑