Error in initialization of pointer results in write access violation

前端 未结 0 1359
南旧
南旧 2021-02-06 06:10

I am having some trouble with pointers. I have a class

class Foo
{
private:
   int var;
public:
   Foo() = default;
   void SetVar(int v) {var = v;}
};

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