自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 心得与体会

这学期贺老师带领我们学习了c++这门课程,并且贺老师采用了翻转课堂的方式来带我们学习,以前我根本没听说过翻转课堂是一种什么样的教学方式。翻转课堂是指学生充分利用课余时间,通过网络资源来学习知识,而课堂上的时间,则是用来听老师提供的重点内容,或者学习过程中遇到的难点。到现在,我已经了解并尝试了一次翻转课堂的滋味。下面来让我说一下这学期的心得与体会: 1.贺老师的教学方式与以往的传统教学方式有很大的

2016-06-24 13:54:28 621

原创 各种物体的表面积体积

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月15日 *版 本 号:codeblocks 16.01 *问题描述: *输入描述: *程序输出: */ #include #include using namespace std; const double pai=3.1415926; class CSolid { public:

2016-06-15 20:11:49 1374

原创 求五个长方体的体积表面积

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月15日 *版 本 号:codeblocks 16.01 *问题描述: *输入描述: *程序输出: */ #include using namespace std; class Bulk { public: Bulk(double x=1.0,double y=1.0,double

2016-06-15 19:18:17 889

原创 简单的继承和派生

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月15日 *版 本 号:codeblocks 16.01 *问题描述: *输入描述: *程序输出: */ #include #include using namespace std; class Person { public: Person(char *s) {

2016-06-15 16:53:36 414

原创 抽象类的应用

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月15日 *版 本 号:codeblocks 16.01 *问题描述: *输入描述: *程序输出: */ #include #include using namespace std; class CSolid { public: virtual double SurfaceAre

2016-06-15 16:43:57 599

原创 友元函数编写运算符重载

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月15日 *版 本 号:codeblocks 16.01 *问题描述: *输入描述: *程序输出: */ #include using namespace std; class Complex { public: Complex(){real=0;imag=0;}

2016-06-15 16:34:31 503

原创 运算符重载3

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月15日 *版 本 号:codeblocks 16.01 *问题描述: *输入描述: *程序输出: */ #include using namespace std; class Wages { double base; double bonus; double tax;

2016-06-15 16:29:14 323

原创 运算符重载2

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月15日 *版 本 号:codeblocks 16.01 *问题描述: *输入描述: *程序输出: */ #include using namespace std; class Sample { private: int x; public: Sample(){} Sa

2016-06-15 16:25:25 594

原创 运算符重载

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月14日 *版 本 号:codeblocks 16.01 *问题描述: *输入描述: *程序输出: */ #include using namespace std; class Complex { public: Complex(){real=0;imag=0;} Co

2016-06-14 12:26:08 608

原创 动物的叫声

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月14日 *版 本 号:codeblocks 16.01 *问题描述: *输入描述: *程序输出: */ #include using namespace std; class Animal { public: virtual void cry() {

2016-06-14 12:22:38 766

原创 建立一个Point类,包含数据成员x,y,实现需要的成员函数,并设计main函数完成测试

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 *问题描述:建立一个Point类,包含数据成员x,y,实现需要的成员函数,并设计main函数完成测试 *输入描述: *程序输出: */ #include using namespace std; class Poi

2016-06-14 12:16:06 13431

原创 警察和厨师不可告人的秘密

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include using namespace std; class Person { public: Person(int,string ); void action(); string getN

2016-06-13 15:37:49 704

原创 继承和派生4

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include using namespace std; class Base { public: Base(char i) { cout<<"Base constructor. --"<<i<<endl; } };

2016-06-13 15:35:40 622

原创 继承和派生3

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include using namespace std; class A { public: A(char *s){cout<<s<<endl;} }; class B:public A { public:

2016-06-13 15:34:19 258

原创 继承和派生2

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include using namespace std; class A { public: A(){a=0;} A (int i){a=i;} void print(){cout<<a<<" ";

2016-06-13 15:33:08 298

原创 继承和派生1

#include using namespace std; class Data { public: Data(int i):x(i){cout<<"A";} ~Data(){ cout<<"B";} private: int x; }; class Base { public

2016-06-13 15:31:48 560

原创 深复制

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include #include using namespace std; class A { private: char *a; public: A(char *aa) {

2016-06-13 15:28:18 249

原创 指向学生的指针

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include using namespace std; class Student { public: Student(int n,double s):num(n),score(s){} void d

2016-06-13 15:21:22 509

原创 输入五位学生姓名成绩,输出最大值最小值

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include #include using namespace std; struct student { string name; float score; }; int main() {

2016-06-13 15:15:27 3801

原创 文件的应用

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include #include #include using namespace std; int main() { int a, max=-9999; ifstream infile("f1.dat",

2016-06-13 15:10:39 258

原创 时间类

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include #include"cmath" using namespace std; class Time { public: void set_time(); void show_time();

2016-06-13 15:06:43 188

原创 求三角形面积

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include #include"cmath" using namespace std; class Triangle { public: void setABC(double x,double y,double

2016-06-13 15:04:28 383

原创 角色类设计2

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月13日 *版 本 号:codeblocks 16.01 */ #include using namespace std; class role { public: void setrole(string M,int x); void weapon1(int ); v

2016-06-13 15:01:54 435

原创 游戏角色设计

#include using namespace std; class role { public: void setrole(string m_name,int m_blood) { name=m_name; blood=m_blood; } void show() {

2016-06-11 23:16:01 460

原创 递归法求a!

#include using namespace std; int fac(int x) ; int main() { int a,b; cin>>a; b=fac(a); cout<<b<<endl; return 0; } int fac(int x) { if(x==1)

2016-06-11 23:14:06 291

原创 猜大小

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月11日 *版 本 号:codeblocks 16.01 */ #include using namespace std; #include #include int main() { int n,m,g=0; srand((unsigned)time(0));

2016-06-11 23:12:08 310

原创 设计十道随机问题

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月11日 *版 本 号:codeblocks 16.01 */ #include using namespace std; #include #include int main() { int i,sum,right=0,num=1,n; int x,y;

2016-06-11 23:07:09 425

原创 两点间距离

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月7日 *版 本 号:codeblocks 16.01 */ #include #include using namespace std; class CPoint { private: double x; double y; public: CPoint(doubl

2016-06-07 20:46:34 368

原创 文件

/* *烟台大学计算机学院 *文件名称:main.cpp *作 者:王者健 *完成日期:2016年6月7日 *版 本 号:codeblocks 16.01 */ #include #include #include using namespace std; const int N=500; class Salary { public: void read_data( );

2016-06-07 20:44:16 281

原创 静态储存

/* *Copyright (c) 2016 *All rights reserved. *文件名称:main.cpp *作 者:王者健 *完成日期:2016年 6 月 7 日 *版 本 号:16.01 */ #include using namespace std; int f(int n); int main() { cout<<f(5)<<" "; co

2016-06-07 20:40:58 265

原创 第三周4(4)三色球问题

/* *烟台大学计算机学院 *文件名称:text.cpp *作 者:王者健 *完成日期:2016年4月7日 *版 本 号:codeblocks 16.01 * *问题描述:若一个口袋中放有12个球,其中3个红的,3个白的和6个黑的。问从中任取8个共有多少种不同的颜色搭配? *输入描述:无 *程序输出:白,黑,红个有多少个。 */ #include using nam

2016-04-07 08:40:18 467

原创 第三周4(3)年龄几何

/* *烟台大学计算机学院 *文件名称:text.cpp *作 者:王者健 *完成日期:2016年4月7日 *版 本 号:codeblocks 16.01 * *问题描述:张三,李四,王五,刘六的年龄成一等差数列,他们四人的年龄相加是二十六, 相乘是880,求以他们的年龄为前四项的等差数列的前20项。 *输入描述:无 *程序输出:等差数列的前20项。

2016-04-07 08:35:04 307

原创 第三周4(2)换分币

/* *Copyrigth(c)2015,烟台大学计算机学院 *All rights reserved. *文件名称:text.cpp *作者:王者健 *完成日期:2016年4月6日 *版本号:CodeBlocks12.11 * *问题描述:用一元钱兑换成1分,2分和五分的硬币,有多少种不同的换法? *输入描述: *程序输出:1分,2分和五分各多少 */

2016-04-07 08:17:41 428

原创 第三周4(1)百钱百鸡

/* *Copyrigth(c)2015,烟台大学计算机学院 *All rights reserved. *文件名称:text.cpp *作者:王者健 *完成日期:2016年4月6日 *版本号:CodeBlocks12.11 * *问题描述:百钱买百鸡:鸡翁一,值钱五;鸡母一,值钱三;鸡雏三,值钱一,问翁、母、雏各几何? *输入描述: *程序输出:翁、母、雏

2016-04-07 08:10:04 344

原创 第三周3(2)输出空心三角形

/* *Copyrigth(c)2015,烟台大学计算机学院 *All rights reserved. *文件名称:main.cpp *作者:王者健 *完成日期:2016年3月31日 *版本号:CodeBlocks12.11 * *问题描述:编程序,输出空心三角 *输入描述:输入行数,图形图案 *程序输出:空心三角形 */ #include voi

2016-03-31 09:19:08 605

原创 第三周2本月有几天?

/* *Copyrigth(c)2015,烟台大学计算机学院 *All rights reserved. *文件名称:main.cpp *作者:王者健 *完成日期:2016年3月31日 *版本号:CodeBlocks12.11 * *问题描述:编程序,输入年份和月份,输出本月有多少天。 *输入描述:输入year,month *程序输出:本月天数。 */

2016-03-31 09:09:43 322

原创 第三周1个人所得税

/* *Copyrigth(c)2015,烟台大学计算机学院 *All rights reserved. *文件名称:test.cpp *作者:王者健 *完成日期:2016年3月31日 *版本号:CodeBlocks12.11 * *问题描述:编写选择结构程序,输入个人月收入总额,计算出他本月应缴税款和税后收入。 *输入描述:输

2016-03-31 09:07:06 295

原创 小试循环(奇数和)

/* 02. *Copyrigth(c)2015,烟台大学计算机学院 03. *All rights reserved. 04. *文件名称:test.cpp 05. *作者:王者健 06. *完成日期:2016年3月10日 07. *版本号:CodeBlocks12.11 08. * 09. *问题描述:求1到m的奇数和 10. *输入描述:输入m 11. *程序输出:1到m

2016-03-24 09:15:28 282

原创 小试循环(倒数和)

/* 02. *Copyrigth(c)2015,烟台大学计算机学院 03. *All rights reserved. 04. *文件名称:test.cpp 05. *作者:王者健 06. *完成日期:2016年3月10日 07. *版本号:CodeBlocks12.11 08. * 09. *问题描述:求1到m的倒数和 10. *输入描述:输入m 11. *程序输出:1到m

2016-03-24 09:02:18 375

原创 小试循环

/* 02. *Copyrigth(c)2015,烟台大学计算机学院 03. *All rights reserved. 04. *文件名称:test.cpp 05. *作者:王者健 06. *完成日期:2016年3月10日 07. *版本号:CodeBlocks12.11 08. * 09. *问题描述:求1到m的平方和 10. *输入描述:输入m 11. *

2016-03-24 08:53:10 256

空空如也

空空如也

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

TA关注的人

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