自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 [朋友写的]取一个数组的前9个最大值

#include const int INF=0xfffffff; int key,ans[10]; void insert_sort(int *A,int n,int key) {     if(n==0||key     int i=n;     while(i>0&&key>A[i-1]){A[i]=A[i-1];i--;}     A[i]=key; } int mai

2014-07-03 20:49:03 518

原创 指向对象的指针【c++】

#include using namespace std; class box { public: box(int h=10,int w=11); ~box(){cout int height; int wight; int volume(); }; box::box(int h,int w) { height=h; wight=w; } int box::volu

2014-03-11 17:17:34 464

原创 对象数组【c++】

#include using namespace std; class box { public: box(int h=10,int w=11); ~box(){cout int volume(); private: int height; int wight; }; box::box(int h,int w) { height=h; wight=w; } int

2014-03-11 17:02:24 487

原创 构造函数和析构函数【c++】

#include using namespace std; class box { public: box(int h=10,int w=11); ~box(){cout int volume(); private: int height; int wight; }; box::box(int h,int w) { height=h; wight=w; } int

2014-03-11 16:55:26 448

原创 求数组最大值【c++】

#include using namespace std; class array { public: void set(); void max(); void show(); private: int arr[10]; int max1; }; int main() { array arrmax; arrmax.set(); arrmax.max(); arrm

2014-03-11 11:37:15 1344

原创 显示时间【c++】

#include using namespace std; class time { public: void set(); void show(); private: int hour; int minute; }; void set(time &); void show(time &); int main() { time t1; t1.set(); t1.s

2014-03-11 11:19:16 584

原创 南阳理工acm- ASCII码排序 -题目4

描述 输入三个字符(可以重复)后,按各字符的ASCII码从小到大的顺序输出这三个字符。 输入第一行输入一个数N,表示有N组测试数据。后面的N行输入多组数据,每组输入数据都是占一行,有三个字符组成,之间无空格。 输出对于每组输入数据,输出一行,字符中间用一个空格分开。 样例输入 3  qwe  asd  zxc 样例输出 e q w  a d s  c x

2014-02-23 01:29:50 916

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除