- 博客(5)
- 收藏
- 关注
原创 Eclipse+NDK+adt+cdt开发环境问题解决
概述本文描述了在Eclipse环境下进行NDK开发时遇到的问题及相关解决方法。 问题列表: * Unresolved inclusion: <jni.h>或Unresolved inclusion: <vector>等 * memcpy的Invalid arguments问题这几个问题不影响程序的编译,但会导致无法在Eclipse中进行运行程序等操作。
2015-09-24 16:09:49
960
原创 编程珠玑——排序算法
编程珠玑第11章讲解的几种排序算法的C++实现 #include "stdafx.h"#include #include #include #include "windows.h"using namespace std;templateinline void isort( InPos posBegin_, InPos posEnd_ ){ /// 通过_Val_type函数获取到迭代器指向的数据类型 _isort(posBegin_, posEnd_, _Val
2011-03-30 20:14:00
445
原创 求向量的最大子向量和
编程珠玑第8章求子向量和算法的C++实现 #include "stdafx.h"#include #include #include #include #include "windows.h"using namespace std;/// O(n^3)算法templatebool MaxSubVectorSum1( InPt posBegin_, InPt posEnd_, ValueType& MaxSubSum_ ){ if( posBegin_ =
2011-03-29 19:38:00
435
原创 查找顺序数组中元素第一次出现的位置(二分查找)
编程珠玑第4章第2题 #include "stdafx.h"#include #include using namespace std;templatebool IsSorted( InPtr posBegin_, InPtr posEnd_ ){ InPtr posSecond = posBegin_; ++posSecond; for( ;posSecond != posEnd_; ++posSecond) { if( *posSecond I
2011-03-29 08:44:00
1336
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人