自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 通讯录功能实现/c++链表

***********************************************************person.h#ifndef PERSON_H#define PERSON_H#include<iostream>#include<string>using namespace std;class Person{//    friend ostream &...

2018-03-11 23:20:05 436

原创 c++报错/函数默认参数

warning: default argument given for parameter原因是函数声明时候加了函数默认参数,在cpp文件里面定义函数的时候也加了默认参数值,导致出错。改正办法就是默认函数参数只能加在声明和定义之中的任意一个位置,不能同时在声明和定义的时候都加上默认参数。如Coordinate.h中 Coordinate(int x=0,int y=0); //声明Coordina...

2018-03-11 15:13:54 1135

原创 顺序表功能实现c++

#include<iostream>#include<string.h>using namespace std;class List{public:    List(int size);   //构造函数    ~List();          //析构函数    void ClearList(); //清空函数    bool ListEmpty(); //判空函数  ...

2018-03-10 15:55:54 157

转载 剑指offer学习笔记1

#include<iostream>#include<string.h>using namespace std;class Cmystring{public:    Cmystring(char* pData=nullptr);    Cmystring(const Cmystring& str);    ~Cmystring(void);    Cmystring...

2018-03-09 22:36:26 125

原创 一元多项式的加法/单链表c++

#include<iostream>using namespace std;template<typename DataType>//定义单链表节点struct Node{    DataType coef,exp;//非零项的系数和指数    Node<DataType> *next;};//定义存放一元多项式的类template<typename Da...

2018-03-09 21:20:25 565

原创 最大子列和/c++

#include<iostream>using namespace std;void Find_MaxSequnce(int A[],int N){    int tempNum=0;    int MaxNum=0;    for(int i=0;i<N; i++)    {        tempNum=A[i];        for(int j=i+1;j<N;j+...

2018-03-09 10:09:15 188

原创 沙漏程序c++

#include<iostream>#include<string>#include<iomanip>using namespace std;void Fun(int n,char c){    int count=1;    int nleft;    while((2*count*count-1)<=n)    {        count++;   ...

2018-03-08 22:24:01 2895

空空如也

空空如也

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

TA关注的人

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