摘要:
代码源自https://github.com/mmcgrana/gobyexample 1 // Go has several useful functions for working with 2 // *directories* in the file system. 3 4 package m 阅读全文
摘要:
在C++11中所有的值必属于左值、右值两者之一,右值又可以细分为纯右值、将亡值。在C++11中可以取地址的、有名字的就是左值,反之,不能取地址的、没有名字的就是右值(将亡值或纯右值)。举个例子,int a = b+c, a 就是左值,其有变量名为a,通过&a可以获取该变量的地址;表达式b+c、函数i 阅读全文