You need to use a member initializer list:
OrderedStream(int n)
: vec(n) // <- A list of initializers for (non-static) members
{
// Empty
}
On another note, unless you expect negative sizes, I recommend that you use size_t
for sizes.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…