![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C/C++
theowl
我是猫头鹰
展开
-
C++面向对象--类
1、实例化的两种方式#include #include using namespace std; class lio{public: int a=3; int b=4; void aa() { cout } int bb() { return b; }原创 2015-08-08 10:42:47 · 840 阅读 · 1 评论 -
排序算法 C++代码实现
插入排序:就像摸牌,摸一张插进去,找一个哨兵,从第二个开始,和前一个比较,小的话前移一位。#include #includeusing namespace std;#define N 4 //不能加分号结束class sort{public: void insertSort(int a[],int n); sort() {原创 2015-08-08 09:39:44 · 948 阅读 · 0 评论