自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 作业5.18

#include #include using namespace std; class person{ public: void input() { cout<<"输入编号:"; cin>>number; cout<<"输入姓名:"; cin>>name; } void show() { cout<<"编号:"<<number<<endl; cout

2015-06-15 15:37:48 277

原创 作业4,21

#include #include using namespace std; class student{ private: int number; string name; float score; static int count; static float sum; static float ave; public: student(int num,string n,float

2015-05-13 17:15:59 307

原创 作业4.18

#include using namespace std; class student{ public: student(int num,int sc) { number=num; score=sc; } int max(student *s); //private: int number; int score;

2015-05-10 23:15:30 271

原创 作业4_20

#include using namespace std; class book{ private: int qu; int price; public: book(int q,int p) {qu=q; price=p; } void show_money() { cout<<qu*price<<endl; } }; int main() { book b[5]={boo

2015-05-10 19:18:02 248

原创 作业4.19

#include using namespace std; class book{ private: int qu; int price; public: book(int q,int p) {qu=q; price=p; } void show_money() { cout<<qu*price<<endl; } }; int main() { book b[5]={boo

2015-05-06 17:43:10 293 1

原创 作业4.17

#include using namespace std; class student{ public: student(int num,float sc) { number=num; score=sc; } void display() { cout<<"学号:"<<number<<' '; cout<<"成绩:"<

2015-04-22 18:45:15 332 1

原创 作业3.24

#include using namespace std; class Date { public: Date(); Date(int y,int m,int d); void GetYear(); void GetMonth(); void GetDay(); void SetDate(int y,int m,int d); void printDate() { cout<<"

2015-04-22 15:39:53 305 1

原创 作业3.23

#include using namespace std; class cylinder { private: double radius; double high; public: cylinder(double r,double h) {radius=r; high=h; } double vol() { return 3.14*radius*radius*high; }

2015-04-22 14:49:14 298 1

原创 作业3.22

#include using namespace std;

2015-04-15 23:01:24 289 1

原创 作业2.30

#include #include using namespace std; int sroot(int i) { return sqrt(i); } long sroot(long l) { return sqrt(l); } double sroot(double d) { return sqrt(d); } int main() { int i=12; long l=1234;

2015-04-15 22:42:16 296 1

原创 作业2.29

#include using namespace std; int main() { int *f; f=new int[20]; *f=1; *(f+1)=1; cout<<*f<<"\t"; cout<<*(f+1)<<"\t"; f=f+2; for(int i=3;i<=20;i++) { *f=*(f-1)+*(f-2); cout<<*f<<"\t";

2015-04-15 22:39:39 312 1

空空如也

空空如也

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

TA关注的人

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