'this' argument has type const but function is not marked const

前端 未结 4 928
灰色年华
灰色年华 2021-02-04 00:44

Okay so I\'m a bit of a noob at C++ and in my second assignment I am required to make classes with public and private arguments etc, etc. Basically the mutator functions won\'t

4条回答
  •  长情又很酷
    2021-02-04 00:58

    Ehm. I think you should use get and set in reverse way... In CreateCustomer you should use set functions and when print Customer to stream - you should use get functions. And set functions should receives string, not unsigned.

    And so, it will be better to use constructor, instead of set functions and then will be only get functions.

提交回复
热议问题