自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

ma155211的专栏

欢迎!

  • 博客(29)
  • 收藏
  • 关注

原创 java中的数组(七)

10.数组中的查找     调用方法

2014-10-23 20:29:14 492

原创 java中的数组(六)

8、数组的比较

2014-10-16 20:31:17 395

原创 java语言中的数组(五)

7.类Arrays复

2014-10-15 21:41:36 508

原创 java语言中的数组(四)

6、返回数组与其他对象一样,数组也可以作为返回值。

2014-10-14 23:56:33 393

原创 java中的数组(三)

5、数组与方法数组

2014-10-14 22:31:53 443

原创 java中的数组(二)

3、多维数组java语言中的数组元素可以使任何合理的数据类型,可以是基本数据类型,y

2014-10-13 22:07:39 405

原创 java中的数组(一)

1、数组的声明与初始化java中声明的格式如下:

2014-10-13 20:12:18 438

原创 java中的接口

在java中不支持多继承只支持但继承,

2014-10-01 23:11:22 435

原创 java中的instanceof用法

一个类的对象可以转换成继承链中的另一个leide

2014-09-30 21:28:54 831

原创 java中的构造方法

构造方法用于初始化对象,在继承中

2014-09-29 20:01:51 415

原创 java中的final变量的用法

java语言中使用关键字final来修饰一个基本数据和

2014-09-29 19:42:18 1372

原创 java中的初始化

java中的初始化有几种方式,其中包括构造函数

2014-09-27 13:39:10 444

原创 java中关于this的用法

this的用法有三种情况:1,在某些情况下,程序中必须明确

2014-09-26 23:17:32 1341

原创 C#中绘制文字两套代码

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name

2014-03-29 19:27:36 430

原创 C#中绘制一个简易的房子

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name

2014-03-29 16:39:42 1858

原创 C#中绘制多边形

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name

2014-03-29 15:06:34 8801

原创 C#中简单的绘图

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name

2014-03-29 14:49:50 601

原创 C#中绘图

using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;name

2014-03-28 14:01:11 463

原创 模版与异常2

编写一个使用数组类模板Array对数组进行排序、求最大值和求元素和的程序,并采用相关数据进行测试。#include#include//#include//#includeusing namespace std;template class Array{private:T a[Max];int num;public:// Array(int num

2013-12-07 12:42:32 440

原创 模版与异常1

编写一个程序,求输入数的平方根。设置异常处理,对输入负数的情况给出提示。#include#includeusing namespace std;void main(){int i;try{coutcin>>i;if(ithrow 1;cout}catch(int){cout}}

2013-12-07 12:41:31 481

原创 文件与流2

编写一个类,该类具有统计文件长度,实现文件复制的函数。其中复制功能函数如:void copy(string srcFileName,string targetFileName);代码:#include#includeusing namespace std;class copyfile{private:char ch;public:     void 

2013-12-07 12:40:15 376

原创 文件与流

.重载运算符“”和“>>”,使其能够输入一件商品的信息和输出这件商品的信息。商品的信息由编号、商品名和价格。假如商品类Merchandise的框架如下:class merchandise{public:  Merchandiss();  ~Merchandiss();  friend istream& operator>>(istream& in,Merchandiss& s)

2013-12-07 12:38:32 548

原创 多继承与虚继承

#includeusing namespace std;class Person{private:char sex,name[10];int age;public:Person(char s=0,char *n=0,int a=0):sex(s),age(a){strcpy(name,n);}void setdata(){coutcin>>name;

2013-11-24 20:29:15 394

原创 继承与静态数据成员

.定义一个描述学生(Student)基本情况的类,数据成员包括姓名(name)、学号(num)、数学成绩(mathScore)、英语成绩(englishScore)、人数(count)、数学总成绩(mathTotalScore)和英语总成绩(englishTotalScore)。其中姓名定义为长度为18的字符数组,其它数据成员类型为整型,数学总成绩、英语总成绩和人数为静态数据成员,函数成员包括构造

2013-11-24 19:55:02 732

原创 继承

5.编写设计一个People(人)类。该类的数据成员有年龄(age)、身高(height)、体重(weight)和人数(num),其中人数为静态数据成员,成员函数有构造函数(People)、进食(Eatting)、运动(Sporting)、睡眠(Sleeping)、显示(Show)和显示人数(ShowNum)。其中构造函数由已知参数年龄(a)、身高(h)和体重(w)构造对象,进食函数使体重加1,运

2013-11-24 19:49:47 857

原创 数据结构教程第三章实验代码

3.1#include#include#define MaxSize 20typedef char ElemType;typedef struct{ElemType data[MaxSize];int top;}SqStack;void InitStack(SqStack *&s);void DestroyStack(SqStack *&s);b

2013-11-16 20:10:22 1098

原创 利用继承设计管理出版物的类与老师与学生的类

1.#includeusing namespace std;class Publication{private:char title[10],name[10];char date[10];double price;public:    Publication(){};~Publication(){};void inputData();void dis

2013-11-14 16:36:34 1127

原创 C++面型对象程序 (电子工业出版社)设计课后习题第三章最后两题

11.设计工人类Worker#include#define MaxSize 20#includeusing namespace std;class Worker{private:char name[10];char Dept[10];int age;Salary salary;static int personsum;public:Wor

2013-11-14 16:26:25 1520 1

原创 C++面向对象承序设计(电子工业出版社)第二章最后两题。

11、#includeusing namespace std;int min(int x[]){int i=0,j;for(j=1;x[j]=0;j++){if(x[i]>x[j])x[i]=x[j];}return (x[i]);} double min(double x[]){int i=0,j;for(j=1;x[j]=0.

2013-11-10 15:36:31 441

空空如也

空空如也

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

TA关注的人

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