自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 第6周任务3

* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 作 者: 于晓峰* 完成日期: 2012年 3月27日* 版 本 号: v1.2#include#include"cmath"using namespace std; enum SymmetricStyle

2012-03-27 20:18:08 283

原创 第六周任务2

* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 作 者: 于晓峰* 完成日期: 2012年 3月26日* 版 本 号: v1.2a.用指针访问对象#includeusing namespace std;class A{private: int a;

2012-03-26 19:19:49 1007 1

原创 第六周任务1

* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 作 者: 于晓峰* 完成日期: 2012年 3月26日* 版 本 号: v1.2第一种#includeusing namespace std;class C{private: int x; publi

2012-03-26 18:10:05 295

原创 第五周任务3

#includeusing namespace std;class Box{public: Box(float h = 10, float w = 12, float len = 15) : heigth(h), width(w), length(len){};//声明有默认参数的构造函数,用参数初始化表对数据成员初始化 int volume(); int area();

2012-03-21 19:35:57 255

原创 第五周任务2

* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 作 者: 于晓峰* 完成日期: 2012年 3月19日* 版 本 号: v1.2#includeusing namespace std;class CFraction{private:

2012-03-20 21:08:45 565 1

原创 第五周任务1-4

* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 三角形类* 作 者: 于晓峰* 完成日期: 2012年 3月19日* 版 本 号: v1.2#include#includeusing namespace std;clas

2012-03-19 19:16:03 327

原创 第五周任务1-3

* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 三角形类* 作 者: 于晓峰* 完成日期: 2012年 3月19日* 版 本 号: v1.2#include#includeusing namespace std;clas

2012-03-19 19:03:29 275

原创 第五周任务1-2

* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 三角形类* 作 者: 于晓峰* 完成日期: 2012年 3月19日* 版 本 号: v1.2#include#includeusing namespace std;clas

2012-03-19 18:42:46 761

原创 第五周任务1-1

* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 三角形类* 作 者: 于晓峰* 完成日期: 2012年 3月19日* 版 本 号: v1.2#include#includeusing namespace std;clas

2012-03-19 18:28:26 278

原创 第四周任务1

* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: 三角形类* 作 者: 于晓峰* 完成日期: 2012年 3月 12日* 版 本 号: v1.2#include #include using namespace std;cla

2012-03-12 19:18:15 846 1

原创 第三周任务2

#include using namespace std;class Subject{public: void set_subject(); void show_subject();private: bool is_subject(double, double, double); double length;    double width; doubl

2012-03-12 18:28:09 446

原创 第三周任务一

/* (程序头部注释开始)* 程序的版权和版本声明部分* Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved.* 文件名称: * 作 者: 于晓峰* 完成日期: 2012年 3 月7 日* 版 本 号: v1.2* 对任务及求解方法的描述部分 #include using namespace s

2012-03-12 18:20:37 441

原创 第二周上机实验

#include #include "string.h"using namespace std;int main(){ char str[200];         cin.get(str, 100, '\n');  for(int i = 0, j = 0; str[i] != '\0'; i++) {  j++; }

2012-03-12 18:12:42 1149

原创 第2周上机任务

(3-1)#include #include "string.h"using namespace std;int main(){char string[81];gets(string);int i,num=0;for(i=0;string[i]!='\0';i++){if(string[i]==' '||string[i]==','||string[i]

2012-03-04 12:23:50 318

原创 第2周上机任务

(2-1)#include using namespace std;long fac(int n) //求n的阶乘{int f;if(n{cout}else if(n==0||n==1){f=1;}else{f=fac(n-1)*n;}return f;}int main(){int m,n;coutc

2012-03-04 11:23:33 619

原创 第2周上机任务

(1-2)#include using namespace std;int main(){int a[50],n,i;cin>>n;if(n==0){cout}for(i=0;n>0;++i){a[i]=n%2;n=n/2;}while(i>0){cout--i;}return 0;}

2012-03-04 11:22:10 288

原创 第2周上机任务

(1-1)#include using namespace std;void d2d(int n){if(n==0){return;}else{d2d(n/2);n=n%2;cout}}int main(){int a;cin>>a; //输入十进制数if(a==0){cout}d2d(a); //转换

2012-03-04 11:18:27 246

空空如也

空空如也

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

TA关注的人

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