自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 输出最高最低分

#include #include using namespace std; struct student { string name; double score; }; void calculate(student s[],int n) { student t; for(int j=0;j<n-1;j++) for(int i=0

2014-06-24 15:18:52 794

原创 类模板

#include #include using namespace std; template class Compare { public: Compare(numtype a,numtype b); numtype max(); numtype min(); private: numtype x,y; }; //主函数已给定如下,提交时不需要包含,会自动添加

2014-06-17 15:27:04 724

原创 成绩处理

/*小平帮老师处理期末成绩时遇到了问题。 他需要计算每个同学的平均成绩,并判断 他们是否通过了期末考试不及格成绩(<60) ,若都通过才能pass,若没通过要说明是哪 几科未通过。因此他需要两个函数,一个求 平均成绩(不考虑小数),另一个判断是否 通过考试,通过输出pass,否则输出未通过 的科目。请你们帮帮他! 期末包括Chinese,Math,English三门课程。 */ #include

2014-06-17 14:50:58 672

原创 最大

#include using namespace std; class Q { public: void set_value(); double get_Max(); private: int n; int a[100]; }; void Q::set_value() { cin>>n; for(int i=0; i<n; i++) {

2014-06-17 14:49:22 698

原创 成绩排列

#include using namespace std; struct student { string name; double score; }; int main() { student stu[5],s; for(int i=0;i<5;i++) { cin>>stu[i].name>>stu[i].scor

2014-06-12 20:00:12 748

原创 重载

#include #include using namespace std; class Complex { public: Complex():real(0),imag(0) {} Complex(double r,double i):real(r),imag(i) {} Complex operator+(Complex &); Complex operator+(dou

2014-06-12 19:49:51 613

原创 acm 3

#include #include using namespace std; class BirthDate { public:     BirthDate(int,int,int);     void display();     void setbirthday(int,int,int); private:     int year;     int month;

2014-06-10 15:22:10 817

原创 acm 2

/*编写一个程序,声明抽象基类Shape,由它派生出3个派生类: Circle(圆形)、Rectangle(矩形)、Triangle(三角形), 用一个函数printArea分别输出以上三者的面积(结果保留两位小数), 3个图形的数据在定义对象时给定*/ #include #include using namespace std; class Shape { publ

2014-06-10 15:21:11 600

原创 acm 1

#include #include using namespace std; class Teacher { public: Teacher(string nam,int a,char s,string tit,string ad,string t); void display(); protected: string name; int ag

2014-06-10 15:20:34 616

原创 项目1-工资数据的输入

/* *程序的版权和版本声明部分: *Copyright(c)2014,烟台大学计算机学院学生 *All rights reserved. *文件名称: *作者:cxz *完成日期:2014 年 6 月 3日 *版本号:v1.0 *对任务及求解方法的描述部分: *输入描述:无 *问题描述: *问题分析:// *算法设计: */ #include using namespace std; int

2014-06-03 14:43:44 858

空空如也

空空如也

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

TA关注的人

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