Default initialisation of a member dependent on the type of other members of a class

后端 未结 0 1441
灰色年华
灰色年华 2020-11-28 05:10

I\'m a bit puzzled as to why the following 2 codes give different outputs,

#include 

class A
{
public:
    int x;
    int y;
    A(int n) : x         


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