C++: How are you supposed to initialize an Array attribute that I don't know the contents of?

前端 未结 0 1312
一个人的身影
一个人的身影 2020-12-05 08:54

I have the following class specified in my code.

class Foo{

private: 

int myInt;
Bar myList[10];

public:

Foo(){

myInt = 0;

}};

I am ge

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