C++: Do functions within structs get copied with the struct?

前端 未结 0 1032
别那么骄傲
别那么骄傲 2020-12-29 07:09

In a struct (or class), I know that I can add a function and then call it later.

struct State {
    int turnsLeft;
            


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