Something like python's __init__ in C++?

后端 未结 0 1794
鱼传尺愫
鱼传尺愫 2021-02-06 11:10

Is there something like __init__ in C++?

Python let me pass arguments to class easily with __init__.

Like This:

class Book         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题