摘要: 1 #include <iostream> 2 using namespace std; 3 4 //如何统计数组中的众数 5 //思路: 先转化为有序数组 6 // 再来查找众数 7 void sortMethod(int intArray[],int array_size); 8 void pr 阅读全文
posted @ 2019-04-06 22:09 littlelittleprince 阅读(4739) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; //递归实现数组求和 int arrayAdd(int intArray[],int array_size); int main() { const int array_size = 5; int age[] = {1 阅读全文
posted @ 2019-04-05 22:06 littlelittleprince 阅读(2595) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; //选择排序的改进 void sort(int intArray[],int array_size); void print(int intArray[],int array_size); int main() { c 阅读全文
posted @ 2019-04-05 17:15 littlelittleprince 阅读(417) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; //选择排序的实现 void sort(int intArray[],int array_size); void print(int intArray[],int array_size); int main() { c 阅读全文
posted @ 2019-04-05 16:51 littlelittleprince 阅读(2233) 评论(0) 推荐(0) 编辑
摘要: 代码一#include <iostream> using namespace std; void diGui(); //实现一个简单的递归 int main() { diGui(); return 0; } void diGui() { static int i = 10; if(i == 1) { 阅读全文
posted @ 2019-04-05 13:52 littlelittleprince 阅读(3143) 评论(1) 推荐(0) 编辑
摘要: #include <iostream> using namespace std; const int array_size = 5; int binaryMethod(int intArray[],int goal); int main() { int age[] = {10,20,30,40,50 阅读全文
posted @ 2019-04-05 13:41 littlelittleprince 阅读(2522) 评论(0) 推荐(0) 编辑
摘要: 接口(Interface)的深入理解 一:接口是规范(不展开) 二:接口可以看成是一个特殊的类 1: 接口可以定义“接口类型变量”,就好像类可以定义类类型的变量(或者说是引用类型变量)。申明一个类类型的变量,然后我们通常使用构造器创建对象,并把该对象赋值给类类型的变量(或者说引用变量引用到我们创建的 阅读全文
posted @ 2018-06-25 22:22 littlelittleprince 阅读(5495) 评论(0) 推荐(0) 编辑