
C/C++
qianliudw2
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
自己写的插入排序
#include using namespace std;void insertion(int list[], int size){ for (int i = 1; i != size; ++i)//准备插入的元素下标 { int min = list[i]; int j = i - 1;//已排好序的元素最大下标值 while (j >= 0 && li原创 2012-08-14 22:58:57 · 407 阅读 · 0 评论 -
自己写的一个练习程序
/*base.h*/#ifndef BASE_H#define BASE_H#include #include using namespace std;class Base{public: Base(){} Base(string x_name, double x_price, int x_num):name(x_name), price(x_price), num(x原创 2012-08-29 18:06:43 · 322 阅读 · 0 评论 -
自写的学生信息管理系统
#include #include #include #include using namespace std;const int NUM = 30;const int CLASS_PRO = 5;enum name_pro {chinese, matchs, english, physics, chemistry};//课程//单个学生信息class stq{public:原创 2012-08-29 18:18:38 · 1071 阅读 · 0 评论 -
选择排序
#include using namespace std;void max(double list[], int size){ for (int i = 0; i <= size - 1; i++) { double min = list[i];//找出第i小的数 int b = i; // 放到第i个位置原创 2012-08-15 00:22:22 · 277 阅读 · 0 评论