GithubHelp home page GithubHelp logo

cxx's Introduction

CXX

记录学习Primer C++的过程

第七章 类

开始同步git库和本地代码

[2023-07-05]

  1. 增加类的相关代码,
  2. 增加私有成员和公有成员的用例
  3. 了解常量内部函数以及非常量内部函数的区别,
  4. const类的使用特点:无法修改内部数据。
  5. 学习mutable 关键字,即使在常量对象中也能进行修改
  6. 学习友元类的作用:通过申明友元类,可以修改另一个类的私有成员变量
  7. 学习友元类内部函数的定义:申明友元内部函数,可以使另一个类中可以访问本类的私有成员
    • 1.在类中先声明要访问友元类私有成员的方法
    • 2.在友元类声明类内部方法为友元方法
    • 3.定义/实现1中的的方法

cxx's People

Contributors

ezreal-zhangxing avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.