![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++11 & C++
八哥写BUG
这个作者很懒,什么都没留下…
展开
-
#define中 字符串处理
1、 #define TEST(A) "abc" A "efg" 调用 auto str = TEST("d") str = "abcdefg" 这样的写法参数只能是字符串 2、 #define TEST(A) "abc" #A "efg" 调用 auto str = TEST(任意值) str = "abc任意值efg" 这样的写法参数 任意值 3、 #define原创 2017-06-29 11:14:52 · 8914 阅读 · 1 评论 -
c++11 & c++ <valarray>
http://www.cplusplus.com/reference/valarray/ valarray 是一个计算数组 它是数组,又有对整个数组的计算能力 std::slice 使用,将valarray 的数据进行切割出来 例子: #include int _tmain(int argc, _TCHAR* argv[]) { std::valar原创 2017-06-26 09:41:07 · 414 阅读 · 0 评论