如何在不使用vector的情况下继续运行?

img

vector用数组代替也可以的,double subject[N],N是subject的最大大小,不过用数组的话,后续元素有删减操作的话会比较麻烦