![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c++
文章平均质量分 57
加尔鲁什
成都郫县男子专修学院,绿厂厂弟
展开
-
Android编译宏、环境变量与选择编译
#ifdef do something #else do something #endif原创 2021-06-08 11:27:29 · 1105 阅读 · 2 评论 -
C++ 求长度几个方法区别
char数组长度 1.strlen:可得实际长度,以\0结尾 2.sizeof:得到数据声明长度 char test[6] ="hello"; printf("\ntest=%s",test); printf("\nsizetest=%d",strlen(test)); printf("\nsizeAtest=%d",sizeof(test)); console打印: test=hello sizetest=5 sizeAtest=6 char testA[7] ="he\0llo"; p原创 2020-09-19 10:07:39 · 1115 阅读 · 0 评论