自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(68)
  • 资源 (1)
  • 收藏
  • 关注

原创 是该让自己的CSDN博客苏醒了

转眼间大三了,而且是大三下学期了,伴随着我的软考通过,心里还是对未来抱有不错的期望的。回想起来这个CSDN博客的由来,立即又再次耳边回荡起贺老师的朗朗笑声。大三了,我们还有多少时间去挖掘自己。前面浪费了大量的时间。所有的丢失都将在这一年多时间里重新拾起来。JAVA,    C++,    C#,    VB,      JSP,      Android,     HTML,   JS,  

2014-02-26 23:02:27 713

原创 c#

一、单项选择题1、以下属于C#简单值数据类型的有【】。(A) int类型 (B) int[]类型(C) char类型 (D)枚举类型2、以下数组声明语句中,不正确的有【】。(A) int[] a;       (B) int [] a=new int[2];(C) int[] a={1,3}; (D) int [] a =int [] {1,3};3、以下拆箱转换语句中,正

2012-12-10 16:38:51 2331

原创 People

package people;public class People { public double height; public double weight; public People(double height ,double weight){ this.height=height; this.weight=weight; } public void spea

2012-10-18 19:15:40 706

原创 图形计算

package tuxingjisuan;//三角形类public class Triangle { private double a,b,c; Triangle(double a,double b,double c){ this.a=a; this.b=b; this.c=c; } public void set_a(double a){ this.a=a;

2012-09-27 18:37:35 801

原创 数组调换

//数组调换public class TestNewMatrix { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub int[][] a={{1,4,5,6},{7,2,10,11},{8,9,12,3}}; printMat

2012-09-20 18:59:26 1048 1

原创 降序排列

public class TestSort { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub sort(82319); } static void sort(int n) { int[] a = {n/10000,

2012-09-20 18:57:08 1018

原创 //完数

//完数public class TestComNum { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub printComNum(1000); } static void printComNum(int n){ f

2012-09-20 18:55:02 414

原创 十六周任务1

#include#include#include using namespace std;int main(){ double a[500],t; ifstream infile("salary.txt",ios::in); if (! infile) { cerr<<"open error!"<<endl; exit(1); } for(int i

2012-06-05 18:01:08 1649 1

原创 15周任务2(下拉式)

代码和上一个一样只是窗口处不同  :插入一个  Combo Box然后再在它的属性栏的行为项中的数据右侧格中输入     +;-;*;/;       还不能忘添加变量哦

2012-05-30 20:07:48 740 1

原创 15周任务2

/* (程序头部注释开始) * 程序的版权和版本声明部分 * Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved. * 文件名称: 窗口四则运算* 作 者: 白传雷 * 完成日期: 2012 年 5 月 30 日

2012-05-30 17:37:45 487

原创 15周任务3

/* (程序头部注释开始) * 程序的版权和版本声明部分 * Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved. * 文件名称:注释程序 * 作 者: 白传雷 * 完成日期: 2012 年 5 月 30 日

2012-05-30 16:45:20 552

原创 15周任务1-窗口

class Triangle { public: Triangle(){a = 1;b = 1;c = 1;} Triangle(double x,double y,double z){a = x;b = y;c = z;} double area(void); double perimeter(void); private:

2012-05-30 12:47:23 948 1

原创 14周任务2---单链表应用

#include using namespace std; class Student { public: Student(int n,double s){num=n;score=s;next=NULL;} Student *next; int num; double sco

2012-05-22 23:01:36 892 1

原创 14周任务1

#include using namespace std;class MyArray{private: int *arr; //用于存放动态分配的数组内存首地址 int size; //数组大小public: MyArray(int sz=50); MyArray(int a[],int sz); //由一个内置类型的数组初始化 MyArray(const MyArray

2012-05-22 21:24:57 912 1

原创 大一即将过去,唯一的大一

大一下学期舍友都说过的好快啊,什么情况啊?还有好多同学还嚷嚷着闲的慌啊。。。。。说实话,大学更多的是各忙各的啊,与跟前的人交流少了,一块出去的次数更少了。      我想,如果没有电脑的话,大家会不会交流的多啊,一起玩的时间也多啊,一起学习的时间也多啊。。。。。困了,洗洗睡吧。。。

2012-05-21 22:03:07 631

原创 13周任务1

#include using namespace std;class Vehicle {public: void run() const { cout << "run a vehicle. "<<endl; } //(2) run()为虚函数}; class Car: public Vehicle {public: void run() con

2012-05-14 18:30:01 878 1

转载 12周任务3

#include #include#include using namespace std;enum vehicleStaus {rest, running}; //车辆状态:泊车、行进class vehicle //车辆类{protected: int maxSpeed; //最大车速 int currentSpeed; //当前速度 int weight; //车重

2012-05-09 20:51:48 610 1

原创 12周任务4

#include #include #include using namespace std; class Point { public: Point(){x = 0; y = 0;} Point(double x0,double y0) {x = x0; y = y0;} ~Point(){} double

2012-05-09 20:40:23 602 1

原创 12周任务2

#include #includeusing namespace std;class Teacher{public: string name; int age; char sex; string addr; string nub; string title; Teacher(string n,int a,char s,string ad,string nu,string t

2012-05-09 20:07:22 450

原创 第十周任务2

#include #include #include //setw:设置输出数据的宽度,使用时应#include using namespace std; class CPerson { protected: char *m_szName; char *m_szId; int m_nSex;//0:women,

2012-04-24 17:40:10 425 1

原创 第十周【任务1】在下面一段类的定义中,需要填充的函数由注释内容给出了功能。

//【任务1】在下面一段类的定义中,需要填充的函数由注释内容给出了功能。#include#includeusing namespace std;class Point //定义坐标点类{public: double x,y; //点的横坐标和纵坐标 Point(){x=0;y=0;} Point(double x0,double y0) {x=x0; y=y0;

2012-04-23 19:19:09 631

原创 九周任务5

/* (程序头部注释开始) * 程序的版权和版本声明部分 * Copyright (c) 2011, 烟台大学计算机学院学生 * All rights reserved. * 文件名称: * 作 者: 白传雷 * 完成日期: 2012 年 4 月 18

2012-04-18 19:58:56 347

原创 九周任务3

#include using namespace std; int gcd(int x,int y) ; class CFraction { private: int nume; // 分子

2012-04-18 19:41:04 380

原创 九周任务1

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

2012-04-18 18:59:07 334

原创 九周【任务2】实现<<和>>类中的运算符重载

#include using namespace std;class CTime{private: unsigned short int hour; // 时 unsigned short int minute; // 分 unsigned short int second; // 秒public: CTime(int h=0,int m=0,int

2012-04-16 19:07:14 322

原创 第八周【任务2】实现Time类中的运算符重载

//【任务2】实现Time类中的运算符重载#include using namespace std;class CTime{private: unsigned short int hour; // 时 unsigned short int minute; // 分 unsigned short int second; // 秒public: CTi

2012-04-09 18:43:02 553 1

原创 第八周任务1:方案二:请用类的友元函数,而不是成员函数,完成上面提及的运算符的重载;

//2)方案二:请用类的友元函数,而不是成员函数,完成上面提及的运算符的重载;#include using namespace std;class Complex{public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} friend Comple

2012-04-09 18:07:09 1114 1

原创 第八周*【任务1】实现复数类中的运算符重载

/*【任务1】实现复数类中的运算符重载定义一个复数类重载运算符+、-、*、/,使之能用于复数的加减乘除。(1)方案一:请用类的成员函数完成运算符的重载;*/#include using namespace std;class Complex{public: Complex(){real=0;imag=0;} Complex(double r,double

2012-04-08 17:07:57 1331

原创 7周任务3.类模板的使用

#include using namespace std; template class Complex { public: Complex( ){real=0;imag=0;} Complex(double r,double i){real=r;imag=i;} Complex complex_add(Complex &c2); // 复数相加函数

2012-04-03 23:13:09 539 1

原创 7周任务2 ,友元函数的使用

#include #include using namespace std; class CPoint {private: double x; // 横坐标 double y; // 纵坐标 public: CPoint(double xx=0,double yy=0):x(xx),y(yy){}

2012-04-03 21:31:06 637

原创 7周【任务1】含有静态数据成员和成员函数的Time类:类中所有的对象共有的数据

#include using namespace std; class Time { public: Time(int=0,int=0,int=0); void show_time( ); //根据is_24和from0,输出适合形式的时间20:23:5/8:23:5 pm/08:23:05 pm void add_seconds(int); //增加n秒钟

2012-04-03 20:41:10 667

原创 六周任务5

//任务五 main.cpp#include #include #include "class.h"using namespace std; int main() { CTriangle ctr1(CPoint(6,6),CPoint(9,7),CPoint(10,5)) ; //ctr1.setTriangle() ;//

2012-03-27 20:43:33 320

原创 六周任务4.1

#include #include using namespace std;class CPoint{private : double x ; double y ;public : CPoint( double xx = 0 , double yy = 0 );//构造函数声明 double Distance ( CPoint p ) con

2012-03-27 20:11:31 476 1

原创 六周任务3

#include #include using namespace std;enum SymmetricStyle { axisx , axisy , point };class CPoint{private : double x ; double y ;public : CPoint( double xx = 0 , double yy =

2012-03-26 20:41:40 639 1

原创 设计三角形类,通过增加构造函数,使对象在定义时能够进行初始化

#include#include using namespace std;class Triangle{public: Triangle ( float x , float y , float z ):a(x),b(y),c(z){} ; //声明构造函数 Triangle();//无参构造函数定义 float perimeter(void

2012-03-19 18:54:07 1237 1

原创 4周任务3

#include #include using namespace std; class NuturalNumber //类的声明 { private: int n; public: void setValue(int x);

2012-03-19 13:18:45 370

原创 四周任务2

//Time.hclass Time //定义一个时间类 { public: void set_time(); //输入时间 void show_time(); //显示时间 inline void add_a_sec(); inline void add_a_mi

2012-03-12 19:25:39 512 1

原创 四周任务1

#include#include "cmath"using namespace std;class Triangle{public: void Setabc(float x, float y, float z);//置三边的值,注意要能成三角形 void Getabc(float *x, float *y, float *z);//取三边的值 float Perimet

2012-03-12 17:31:37 338

原创 三周任务三

#include using namespace std; class Time //定义一个时间类 { public: void set_time(); //输入时间 void show_time(); //显示时间 inline void add_a_sec(); inl

2012-03-12 17:00:34 318

原创 程序改错

错误的程序:#include using namespace std; class Time { void set_time(void) ; void show_time(void); int hour; int minute;

2012-03-05 19:25:19 579

JSP+Oracle

这是一个JSP+Oracle+tomcat的页面访问数据库的数据增删改查案例,使用了分页技术,C标签等等,功能齐全

2014-10-23

空空如也

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

TA关注的人

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