Accesing variables across all struct in C++

后端 未结 0 1590
灰色年华
灰色年华 2021-01-17 03:51

Let\'s say a have a following code:

struct Joe {
    const double weigth = 88.6;
    const double heigth = 185.6;
    const double X = Alice().heigth; // Erro         


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