- 博客(16)
- 收藏
- 关注
原创 第六周实验报告4
/* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 有关三角形的类函数调用 * 作 者: 王智凯 * 完成日期: 2012 年
2012-03-27 19:26:32 484 1
原创 第六周实验任务2-1,2-2
/* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 修改错误 * 作 者: * 完成日期: 2012 年 03 月
2012-03-26 22:39:49 556
原创 第六周实验报告3
/* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 由坐标点求距离和对称坐标 * 作 者: 王智凯 * 完成日期: 2012
2012-03-26 20:04:49 461
原创 第六周实验任务一
/* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 修改错误 * 作 者: * 完成日期: 2012 年 03 月
2012-03-26 19:58:49 433
原创 第五周实验报告4
#include using namespace std;class Student{public: Student(int n, float s):num(n),score(s){}; int get_num(){return num;} float get_score(){return score;} void display(
2012-03-20 23:12:54 510
原创 第五周实验报告2
/* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 求一系列分数 * 作 者: 王智凯 * 完成日期: 12 年
2012-03-20 14:22:35 735 2
原创 第五周实验报告3
/* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 五个长方柱的面积和体积 * 作 者: 王智凯 * 完成日期: 12
2012-03-19 20:18:27 325
原创 第五周任务一(构造函数)
#include #include using namespace std;class Triangle{public:triangle (float x=3,float y=4,float z=5);//在声明构造函数时使用默认值 float permeter(void); float area(void ); void showMessage();private: flo
2012-03-19 20:15:12 427
原创 第四周实验报告4(涨工资)
#include using namespace std; class Salary{public: void get_salary(); void add_salary(); void sequence_salary(); void show_salary();private: double salary[50]; in
2012-03-17 14:16:04 995
原创 第四周实验报告3
#include using namespace std;class NaturalNumber{private: int n;public: void setValue(int x);//置数据成员n的值,要求判断是否是正整数 int getValue();//返回私有数据成员n的值 bool isPrime();//判断数据成员n是否为素数,是返回true,
2012-03-13 16:42:11 494
原创 第四周实验报告1
#include #include using namespace std;class Triangle{public: void Setabc(float x,float y,float z);//置三边的值; void Getabc(float *x,float *y,float *z);//取三边的值 float perimeter(void);//计算三边的
2012-03-12 16:21:28 423
原创 第三周实验报告4修改版
#include using namespace std;class Cfz{public: void get_data(); void display();private: int lengh; int width; int height; int volume; int acreage;};void Cfz::get_data(){
2012-03-10 13:01:15 430
原创 第三周实验报告4
#include using namespace std;class Rp{public: void set_ckg(); void calculate_va(); void show_va();private: struct Cfz { int length; int width; int height; int volume; int
2012-03-06 14:09:28 1039 2
原创 第三周实验报告2
#include using namespace std;class Time{public: //应该为公用成员 void set_time(void); void show_time(void);private: //应该为私用成员 int hour; int minute; int sec
2012-03-05 18:09:15 724
原创 第三周实验报告3
#include using namespace std;class Time{public: void set_time(); void show_time(); void add_a_sec(); void add_a_minute(); void add_an_hour(); void add_seconds(); void add_minutes
2012-03-05 17:25:39 473
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人