C语言
William.yan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
‘string‘ is not a member of ‘std‘
今天编译vorbis sink遇到如下问题‘string’ is not a member of ‘std’这个问题其实很简单:1、sh配置文件需要加上C++11export CXXFLAGS+=" -std=c++11"2、注意头文件是string而不是string.h#include <string>而不是#include <string.h>...原创 2021-06-09 17:43:42 · 2382 阅读 · 0 评论 -
二维数组作为函数参数
最近花了2小时才定位一个二位数组排序出错的bug,记录一下1.排序方法static void fileSort(char **buff,int len){ char *temp; int i, j; for (i = 0; i < len; ++i){ for (j = i + 1; j < len; ++j){ if( strcmp(buff[i], buff[j]) > 0){ temp = buff[i];原创 2021-04-17 13:54:49 · 342 阅读 · 0 评论
分享