自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 2674 3-5 学生成绩统计

3-5 学生成绩统计#include<iostream>#include<cmath>#include<iomanip>using namespace std;int n;class student{ private: char Name[26]; int StuID,Math,Eng,Com; public : void set()

2016-10-31 23:18:14 399

原创 3344 数据结构实验之二叉树五:层序遍历

数据结构实验之二叉树五:层序遍历#include<cstdio>#include<cstring>#include<cstdlib>#include<iostream>using namespace std;char a[100];int k;struct node{ int data; struct node *lchild,*rchild;};struct n

2016-10-30 22:01:14 296

原创 3341 数据结构实验之二叉树二:遍历二叉树

数据结构实验之二叉树二:遍历二叉树#include<stdio.h>#include<string.h>#include<stdlib.h>char a[100];int l1;struct node //二叉树的定义{int data;struct node *lchild,*rchild;};struct node *creat() //建立二叉树{struct nod

2016-10-30 21:55:40 1885

原创 3311 数据结构实验之串三:KMP应用

数据结构实验之串三:KMP应用#include<stdio.h>#include<string.h>int s1[1000005],s2[1000005];int next[1000005],k=0;void get_next(int m){ int i=0,j=-1; next[0]=-1; while(i<m) { if(j==-1||s

2016-10-30 21:36:00 387

原创 SDUT2680 6-2 多态性与虚函数

6-2 多态性与虚函数#include <iostream>using namespace std;class Pet{public: virtual void speak() { cout<<"How does a pet speak ?"<<endl; }protected: char *name;};class Dog:public

2016-10-28 15:49:12 202

原创 SDUT2679 6-1 多态性与虚函数

6-1 多态性与虚函数#include <iostream>using namespace std;class Pet{public: virtual void speak()//定义基类函数为虚函数 { cout<<"How does a pet speak ?"<<endl; }};class Dog:public Pet{public:

2016-10-28 15:40:08 767

原创 1479数据结构实验之栈:行编辑器

数据结构实验之栈:行编辑器#include<cstdio>#include<cstdlib>#include<iostream>#include<cstring>#define stackmax 100000#define stacknum 100000int x;typedef int Elemtype;typedef struct{ Elemtype *top;

2016-10-27 16:41:36 315

原创 1252 进制转换

进制转换#include<cstdio>#include<cstdlib>#include<iostream>#define stackmax 100000#define stacknum 100000int x;typedef int Elemtype;typedef struct{ Elemtype *top; Elemtype *base; int

2016-10-27 16:38:34 337

原创 3335 数据结构实验之栈八:栈的基本操作

数据结构实验之栈八:栈的基本操作#include<cstdlib>#include<iostream>#include<cstdio>#include<stdio.h>using namespace std;typedef int ET;typedef struct{ int *top; int *base; int stacksize;}stack;int

2016-10-27 16:35:28 8097

原创 3334 数据结构实验之栈七:出栈序列判定

数据结构实验之栈七:出栈序列判定#include <iostream> #include <stdlib.h> using namespace std; int main() { int a[100000], b[100000], Stack[100000], n, t; cin >> n; for(int i = 0; i < n; i++)

2016-10-27 16:31:46 251

原创 3333 数据结构实验之栈六:下一较大值(二)

数据结构实验之栈六:下一较大值(二)#include<cstdio>#include<cstdlib>#include<iostream>#include<cstring>#define stackmax 110000#define stacknum 110000typedef struct{ int data; int id; int next;}node;typ

2016-10-27 16:29:14 266

原创 3332 数据结构实验之栈五:下一较大值(一)

数据结构实验之栈五:下一较大值(一)#include<cstdio>#include<cstdlib>#include<iostream>#include<cstring>#define stackmax 110000#define stacknum 110000int x,a[100001];typedef int Elemtype;typedef struct{ El

2016-10-27 16:28:25 377

原创 2134 数据结构实验之栈四:括号匹配

数据结构实验之栈四:括号匹配#include<stdio.h>#define maxsize 51struct stack{ char a[maxsize] ; int top ;}s ;int match(char c1, char c2){ if((c1=='{'&&c2=='}')||(c1=='('&&c2==')')||(c1=='['&&c2=='

2016-10-27 16:27:21 219

原创 2133 数据结构实验之栈三:后缀式求值

数据结构实验之栈三:后缀式求值#include<iostream> #include<algorithm> using namespace std; const int maxn=100000+10; typedef struct node { int *data; int top; int bottom; }Stack; Stack S;

2016-10-27 16:25:34 196

原创 2132 数据结构实验之栈二:一般算术表达式转换成后缀式

数据结构实验之栈二:一般算术表达式转换成后缀式#include<cstdlib> #include<iostream> #include<cstdio> #define stacknum 11111 #define stackmax 1111111 typedef char ET; typedef struct { ET *top; ET *ba

2016-10-27 16:19:59 220

原创 2713 5-3 多级派生类的构造函数

5-3 多级派生类的构造函数 #include<iostream>#include<cstring>using namespace std;class Person{public : Person(string a,char b,int c){name =a;sex=b;age=c;} void disshow(); void setting();protected:

2016-10-26 16:40:41 383

原创 2712 5-2 派生类的构造函数

5-2 派生类的构造函数#include<iostream>#include<cstring>using namespace std;class Person{public : Person(string a,char b,int c){name =a;sex=b;age=c;} void disshow(); void setting();protected: st

2016-10-26 16:14:12 342

原创 26785-1 继承与派生

5-1 继承与派生#include<iostream>#include<cstring>using namespace std;class Point{public : Point(){x=0;y=0;} Point(float a,float b){x=a;y=b;} float Move (float,float); float Getx(float); floa

2016-10-26 15:22:12 339

原创 1274面向对象程序设计上机练习十二(运算符重载)

面向对象程序设计上机练习十二(运算符重载) #include<iostream>#include<cstring>using namespace std;class Complex{public : Complex(){imag=0;real=0;} Complex(double a,double b){real=a;imag=b;} operator double(){r

2016-10-26 09:18:02 231

原创 1273面向对象程序设计上机练习十一(运算符重载)

面向对象程序设计上机练习十一(运算符重载)#include<iostream>#include<cstring>using namespace std;class Complex{public : Complex(){x1=0;x2=0;x3=0;y1=0;y2=0;y3=0;} Complex(int a,int b,int c,int d,int e,int f){x1=a;x

2016-10-26 08:34:39 396

原创 1272面向对象程序设计上机练习十(运算符重载)

面向对象程序设计上机练习十(运算符重载)#include<iostream>#include<cstring>using namespace std;class Complex{public : Complex(){real=0;imag=0;} Complex(double a, double b){real=a;imag=b;} Complex operator +(Com

2016-10-20 16:45:19 295

原创 4-2 电子时钟中的运算符重载

4-2 电子时钟中的运算符重载#include<iostream>#include<cstring>using namespace std;int a,b,c;class Time{public : Time (){hour=0;minute=0;sec=0;} Time(int a,int b,int c):hour(a),minute(b),sec(c){}

2016-10-20 15:53:39 354

原创 2676 3-7 类的友元函数的应用

3-7 类的友元函数的应用#include<iostream>#include<cmath>using namespace std;int n;class point{ private: double x; double y; public : point (){x=0;y=0;} point (double a,double

2016-10-10 20:06:40 220

原创 4-1 复数类的运算符重载

#includeusing namespace std;int n;class fushu{    private:      double real;      double imag;    public :      fushu (){real=0;imag=0;}      fushu (double r,double i){real=r;imag=

2016-10-10 15:34:37 266

原创 面向对象程序设计上机练习八(对象数组)

#includeusing namespace std;int n;class student{    int i;    private:      int score[1000];      char ID[1000][20];    public :      void intset()      {          for(i=0;i 

2016-10-10 14:58:05 607

原创 1271面向对象程序设计上机练习九(对象指针)

面向对象程序设计上机练习九(对象指针)#include<iostream>#include<cstring>using namespace std;int a,b,c;class student{public : int get() { cin>>num>>score; } string shownum()//类内的学号和成绩都是私有的

2016-10-10 12:54:07 428

原创 3331数据结构实验之链表八:Farey序列

数据结构实验之链表八:Farey序列#include<bits/stdc++.h> using namespace std; struct node { int a,b; node *next; }; void creat(node *head,int n) { node *t,*p,*q; t=head->next; w

2016-10-08 22:13:33 509

原创 2054数据结构实验之链表九:双向链表

数据结构实验之链表九:双向链表#include<stdio.h>#include<iostream>using namespace std;int n;struct node{ int d; node *prev,*next;};node *CreatList(int n) //顺序建双向链表{ node *head=new node; h

2016-10-08 22:07:54 682

原创 2131数据结构实验之栈一:进制转换

数据结构实验之栈一:进制转换#include<cstdio>#include<cstdlib>#include<iostream>#define stackmax 100000#define stacknum 100000int x;typedef int Elemtype;typedef struct{ Elemtype *top; Elemtype *base

2016-10-08 21:48:33 295

原创 2122数据结构实验之链表七:单链表中重复元素的删除

数据结构实验之链表七:单链表中重复元素的删除#include<iostream>#include<malloc.h>using namespace std;int a=0,b=0;struct node{ int data; struct node *next;};struct node *creat(int n){ struct node *head,*ta

2016-10-08 21:39:24 274

原创 2121数据结构实验之链表六:有序链表的建立

数据结构实验之链表六:有序链表的建立#include<iostream>#include<malloc.h>using namespace std;int a=0,b=0;struct node{ int data; struct node *next;};struct node *creat(int m){ struct node *head,*tail,

2016-10-08 20:11:18 247

原创 2120数据结构实验之链表五:单链表的拆分

数据结构实验之链表五:单链表的拆分#include<iostream>#include<malloc.h>using namespace std;int a=0,b=0;struct node{ int data; struct node *next;};struct node *creat(int m){ struct node *head,*tail,*

2016-10-08 19:58:06 657

原创 2119数据结构实验之链表四:有序链表的归并

数据结构实验之链表四:有序链表的归并#include<iostream>#include<malloc.h>using namespace std;struct node{ int data; struct node *next;};struct node *creat(int m){ struct node *head,*tail,*p; int i

2016-10-08 19:03:57 446

tsvn及中文化下载

TSVN版本控制中文版(windows 64x)内含LanguagePack_1.9.7.27907-x64-zh_CN中文包及TortoiseSVN.msi

2020-08-04

空空如也

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

TA关注的人

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