李明宇
码龄10年
关注
提问 私信
  • 博客:27,632
    27,632
    总访问量
  • 51
    原创
  • 522,811
    排名
  • 13
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
  • 加入CSDN时间: 2014-10-03
博客简介:

qq_21541063的专栏

查看详细资料
个人成就
  • 获得0次点赞
  • 内容获得18次评论
  • 获得1次收藏
创作历程
  • 14篇
    2015年
  • 37篇
    2014年
成就勋章
TA的专栏
  • 随笔
    49篇
创作活动更多

如何做好一份技术文档?

无论你是技术大神还是初涉此领域的新手,都欢迎分享你的宝贵经验、独到见解与创新方法,为技术传播之路点亮明灯!

180人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

银行储蓄系统

/* *版权所有:Copyright (c)2015,烟台大学计算机与控制工程学院 *All rights reserved. * *文件名称:bank.h *文件标识:无 *内容摘要:该代码用于获取满足后缀要求的第一个文件 *其他说明:无 *当前版本:V1.0 *作    者:李明宇 *完成日期:2015年7月16日 * *修改记录: *修改日期:无 *版本号:V1.0 *修改人:李明宇 *修改
原创
发布博客 2015.07.18 ·
638 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

十二周项目2

#include #include #include using namespace std; enum vehicleStaus {rest, running}; //车辆状态:泊车、行进 class vehicle //车辆类 { protected: int maxSpeed; //最大车速 int currentSpeed; //当前速度 int weigh
原创
发布博客 2015.05.27 ·
1063 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

十二周项目一

#include #include using namespace std; class Teacher { public: Teacher(string na,int a,char s,string ti,string ad,string t):name(na),age(a),sex(s),title(ti),addr(ad),tel(t){ } void display();
原创
发布博客 2015.05.27 ·
648 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第八周项目一-实现复数类中的运算符重载

#include using namespace std; class Complex { public: Complex(){real=0;imag=0;} Complex(double r,double i){real=r; imag=i;} Complex operator+(const Complex &c2); Complex operator-(con
原创
发布博客 2015.04.29 ·
613 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第六周项目二我的数组类

#include using namespace std; class MyArray { private: int *arrayAddr; //保存一个有len个整型元素的数组的首地址 int len; //记录动态数组的长度 int max; //动态数组中的最大值(并非动态数组中必须要的数据成员) public: MyArray(int
原创
发布博客 2015.04.15 ·
387 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第六周项目一深复制(3)

#include #include using namespace std; class A { private: char *a; public: A(char *aa) { a = new char[strlen(aa)+1]; //(a)这样处理的意义在于:_ 保存字符串中的'/n' strcpy(a, aa); //(b)数据成员
原创
发布博客 2015.04.15 ·
511 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第六周项目一深复制

#include #include using namespace std; class A { private: char *a; public: A(char *aa) { a = new char[strlen(aa)+1]; //(a)这样处理的意义在于:_ 保存字符串中的'/n' strcpy(a, aa);
原创
发布博客 2015.04.15 ·
470 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第五周项目一 体验常成员函数

#include #include using namespace std; class CPoint { private: double x; // 横坐标 double y; // 纵坐标 public: CPoint(double xx=0,double yy=0); double Distance1(CPoint p) const;
原创
发布博客 2015.04.08 ·
420 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第五周项目程序阅读一

#include using namespace std; class base { private : int m ; public : base () {}; base(int m){this->m=m;} int get () {return m;} void set (int m){this->m=m;} };//
原创
发布博客 2015.04.08 ·
339 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第3周项目5数组作数据成员

#include using namespace std; class Salary { private: double salarys[50]; int number; public: void set_salarys(); void add_salarys(int x); void sort_salarys
原创
发布博客 2015.03.29 ·
572 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第3周项目4考了语文数学的学生

#include #include using namespace std; class Stu { private: string name; //学生姓名 float chinese; //语文成绩 float math; //数学成绩 //接下去写 public: void setStuden
原创
发布博客 2015.03.29 ·
467 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第3周项目2三角形类2

#include #include using namespace std; class Triangle { public: void setA(double x) { a=x; }; void setB(double y) { b=y; }; vo
原创
发布博客 2015.03.29 ·
689 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

第3周项目1三角形类1

#include #include #include using namespace std; class Triangle { public: void setABC(double x, double y, double z);//置三边的值,注意要能成三角形 void getABC(double *x, double *y, double *z)
原创
发布博客 2015.03.29 ·
747 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

试验

class Time { public: Time( ); Time(int h,int m=0,int s=0); void show_time( ); private: int hour; int minute; int sec; }; Time::Time( ) : hour(0), minute(0), sec(0){ } Time:
原创
发布博客 2015.03.29 ·
812 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

17-1体会函数参数

#include using namespace std; void fun1(int &x,int &y); void fun2(int *x, int *y); int main() { int a,b; a=11; b=22; fun2(&a,&b); cout<<"a="<<a<<" b="<<b<<endl
原创
发布博客 2014.12.23 ·
815 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

引用作形参

#include using namespace std; void f1(int *x,int *y,int *z); void f2(int &x,int &y,int &z); int main() { int a,b,c; cin>>a>>b>>c; f1(&a,&b,&c); cout<<"降序排列为:"<<a<
原创
发布博客 2014.12.23 ·
458 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

17-3胖子伤不起

#include using namespace std; struct people { char name[20]; char sex; double height; double weight; }; int main() { double z,b; people p; cin
原创
发布博客 2014.12.23 ·
497 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

17-4生日差几天

#include using namespace std; struct Date { int year; int month; int day; }; int main() { Date date,time; cout<<"第一人的生日为:"; cin>>date.year>>date.month>
原创
发布博客 2014.12.23 ·
933 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

16-4动态数组扩容

#include using namespace std; int main( ) { int num,i,addNum; //num是小组人数 cout<<"输入学生人数: "; cin>>num; int *score = new int[num]; cout<<"请输入学生成绩: "<<endl;
原创
发布博客 2014.12.16 ·
1103 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

16-3函数指针调用

#include using namespace std; void eat(); void sleep(); void hitdoudou(); void run(void (*f)()); int main() { int iChoice; do { cout<<"请选择(1-吃;2-睡;3-打;其他
原创
发布博客 2014.12.16 ·
534 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多